forked from enlightenment/enlightenment
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:
parent
debd88b91c
commit
6e39997ad1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,11 @@
|
|||
- 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
|
||||
"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:
|
||||
|
|
Loading…
Reference in New Issue