add smart callback for when gadgets get reparented

this can be useful for gadgets which (inexplicably) need to set min size hints
This commit is contained in:
Mike Blumenkrantz 2016-11-01 13:29:45 -04:00
parent debd88b91c
commit 6e39997ad1
2 changed files with 7 additions and 1 deletions

View File

@ -352,6 +352,7 @@ _bryce_style(Evas_Object *site, Eina_Stringshare *name, Evas_Object *g)
e_theme_edje_object_set(ly, NULL, buf);
prev = e_gadget_util_layout_style_init(g, ly);
elm_object_part_content_set(ly, "e.swallow.content", g);
evas_object_smart_callback_call(g, "gadget_reparent", ly);
evas_object_del(prev);
}

View File

@ -70,7 +70,12 @@
- called on a gadget object when the "gadget_menu" action has been triggered
- event_info is an E_Menu object
- if a configure callback has been passed with e_gadget_configure_cb_set(),
a "Settings" item will be automatically added with this callback
a "Settings" item will be automatically added with this callback
"gadget_reparent"
- called on a gadget object when the gadget has been reparented
- parent object is event_info
- indicates that the gadget should watch this new object for EVAS_CALLBACK_RESIZE
- event_info will be NULL in the case that the reparenting removes the parent
-------------------------------
-------------------------------
* called externally by gadget on gadget object: