forked from enlightenment/enlightenment
evry - move to non deprecated aspect set call
This commit is contained in:
parent
fdca24a82b
commit
fccf2f5aef
|
@ -1278,7 +1278,7 @@ _evry_selector_thumb_gen(void *data, Evas_Object *obj EINA_UNUSED, void *event_i
|
|||
}
|
||||
|
||||
e_icon_size_get(sel->o_thumb, &w, &h);
|
||||
edje_extern_object_aspect_set(sel->o_thumb, EDJE_ASPECT_CONTROL_BOTH, w, h);
|
||||
evas_object_size_hint_aspect_set(sel->o_thumb, EVAS_ASPECT_CONTROL_BOTH, w, h);
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s:e.swallow.thumb", sel->edje_part);
|
||||
edje_object_part_swallow(win->o_main, buf, sel->o_thumb);
|
||||
|
|
|
@ -90,7 +90,7 @@ _cb_thumb_gen(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN
|
|||
if (!it->frame) return;
|
||||
|
||||
e_icon_size_get(it->thumb, &w, &h);
|
||||
edje_extern_object_aspect_set(it->thumb, EDJE_ASPECT_CONTROL_BOTH, w, h);
|
||||
evas_object_size_hint_aspect_set(it->thumb, EVAS_ASPECT_CONTROL_BOTH, w, h);
|
||||
evas_object_size_hint_max_set(it->thumb, w, h);
|
||||
edje_object_part_unswallow(it->frame, it->image);
|
||||
edje_object_part_swallow(it->frame, "e.swallow.thumb", it->thumb);
|
||||
|
|
Loading…
Reference in New Issue