update widget size hints when setting a resize object

devs/bu5hm4n/econfigure2
Mike Blumenkrantz 8 years ago
parent 21479f5019
commit fdab0218b2
  1. 3
      src/bin/e_widget.c

@ -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);
_e_smart_reconfigure(sd);
}

Loading…
Cancel
Save