update widget size hints when setting a resize object

This commit is contained in:
Mike Blumenkrantz 2015-01-14 20:38:18 -05:00
parent 21479f5019
commit fdab0218b2
1 changed files with 3 additions and 0 deletions

View File

@ -195,10 +195,13 @@ e_widget_sub_object_del(Evas_Object *obj, Evas_Object *sobj)
EAPI void
e_widget_resize_object_set(Evas_Object *obj, Evas_Object *sobj)
int w, h;
API_ENTRY return;
if (sd->resize_obj) evas_object_smart_member_del(sd->resize_obj);
sd->resize_obj = sobj;
evas_object_event_callback_add(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _e_widget_hint, obj);
evas_object_size_hint_min_get(sobj, &w, &h);
evas_object_size_hint_min_set(obj, w, h);
evas_object_smart_member_add(sobj, obj);