Page MenuHomePhabricator

Deprecated APOI usage in edje-edit-part-box examples
Closed, ResolvedPublic

Description

When compiling he examples with make examples this compile warnings show up for a very long time already:

  CC       edje-edit-part-box.o
edje-edit-part-box.c: In function ‘_on_bg_key_down’:
edje-edit-part-box.c:95:9: warning: ‘edje_edit_part_item_align_x_get’ is deprecated [-Wdeprecated-declarations]
         double align_x = edje_edit_part_item_align_x_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3549:48: note: declared here
 EAPI double edje_edit_part_item_align_x_get(Evas_Object *obj, const char *part, const char *item);
                                                ^
edje-edit-part-box.c:96:9: warning: ‘edje_edit_part_item_align_y_get’ is deprecated [-Wdeprecated-declarations]
         double align_y = edje_edit_part_item_align_y_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3599:48: note: declared here
 EAPI double edje_edit_part_item_align_y_get(Evas_Object *obj, const char *part, const char *item);
                                                ^
edje-edit-part-box.c:104:9: warning: ‘edje_edit_part_item_align_x_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_align_x_set(edje_edit_obj, "green", "x2", align_x))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3574:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_align_x_set(Evas_Object *obj, const char *part, const char *item, double align_x);
                                                   ^
edje-edit-part-box.c:106:9: warning: ‘edje_edit_part_item_align_y_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_align_y_set(edje_edit_obj, "green", "x2", align_y))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3624:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_align_y_set(Evas_Object *obj, const char *part, const char *item, double align_y);
                                                   ^
edje-edit-part-box.c:117:9: warning: ‘edje_edit_part_item_weight_x_get’ is deprecated [-Wdeprecated-declarations]
         double weight_x = edje_edit_part_item_weight_x_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3649:48: note: declared here
 EAPI double edje_edit_part_item_weight_x_get(Evas_Object *obj, const char *part, const char *item);
                                                ^
edje-edit-part-box.c:118:9: warning: ‘edje_edit_part_item_weight_y_get’ is deprecated [-Wdeprecated-declarations]
         double weight_y = edje_edit_part_item_weight_y_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3699:48: note: declared here
 EAPI double edje_edit_part_item_weight_y_get(Evas_Object *obj, const char *part, const char *item);
                                                ^
edje-edit-part-box.c:126:9: warning: ‘edje_edit_part_item_weight_x_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_weight_x_set(edje_edit_obj, "green", "x2", weight_x))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3674:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_weight_x_set(Evas_Object *obj, const char *part, const char *item, double weight_x);
                                                   ^
edje-edit-part-box.c:128:9: warning: ‘edje_edit_part_item_weight_y_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_weight_y_set(edje_edit_obj, "green", "x2", weight_y))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3724:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_weight_y_set(Evas_Object *obj, const char *part, const char *item, double weight_y);
                                                   ^
edje-edit-part-box.c:140:9: warning: ‘edje_edit_part_item_padding_get’ is deprecated [-Wdeprecated-declarations]
         edje_edit_part_item_padding_get(edje_edit_obj, "green", "x2", &l, &r, &t, &b);
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3489:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_padding_get(Evas_Object *obj, const char *part, const char *item_name, int *l, int *r, int *t, int *b);
                                                   ^
edje-edit-part-box.c:150:9: warning: ‘edje_edit_part_item_padding_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_padding_set(edje_edit_obj, "green", "x2", l, r, t, b))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3505:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_padding_set(Evas_Object *obj, const char *part, const char *item_name, int l, int r, int t, int b);
                                                   ^
edje-edit-part-box.c:162:9: warning: ‘edje_edit_part_item_spread_w_get’ is deprecated [-Wdeprecated-declarations]
         int spread_w = edje_edit_part_item_spread_w_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3118:45: note: declared here
 EAPI int edje_edit_part_item_spread_w_get(Evas_Object *obj, const char *part, const char *item);
                                             ^
edje-edit-part-box.c:163:9: warning: ‘edje_edit_part_item_spread_h_get’ is deprecated [-Wdeprecated-declarations]
         int spread_h = edje_edit_part_item_spread_h_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3153:45: note: declared here
 EAPI int edje_edit_part_item_spread_h_get(Evas_Object *obj, const char *part, const char *item);
                                             ^
edje-edit-part-box.c:176:9: warning: ‘edje_edit_part_item_spread_w_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_spread_w_set(edje_edit_obj, "green", "x2", spread_w))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3136:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_spread_w_set(Evas_Object *obj, const char *part, const char *item, int spread_w);
                                                   ^
edje-edit-part-box.c:178:9: warning: ‘edje_edit_part_item_spread_h_set’ is deprecated [-Wdeprecated-declarations]
         if (!edje_edit_part_item_spread_h_set(edje_edit_obj, "green", "x2", spread_h))
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:3166:51: note: declared here
 EAPI Eina_Bool edje_edit_part_item_spread_h_set(Evas_Object *obj, const char *part, const char *item, int spread_h);
                                                   ^
edje-edit-part-box.c:189:9: warning: ‘edje_edit_part_item_min_w_get’ is deprecated [-Wdeprecated-declarations]
         int min_w = edje_edit_part_item_min_w_get(edje_edit_obj, "green", "x2");
         ^
In file included from edje-edit-part-box.c:28:0:
../../../src/lib/edje/Edje_Edit.h:2870:45: note: declared here
 EAPI int edje_edit_part_item_min_w_get(Evas_Object *obj, const char *part, const char *item);
                                             ^
edje-edit-part-box.c:190:9: warning: ‘edje_edit_part_item_min_h_get’ is deprecated [-Wdeprecated-declarations]
         int min_h = edje_edit_part_item_min_h_get(edje_edit_obj, "green", "x2");

...

It is either time to adapt the example to use the new APIs or remove it. Having a example promoting deprecated APIs is bad.