forked from enlightenment/efl
widget: remove redundat resize_object_set call
Summary: This code is wrong and enforces developers to manipulate resize_obj filed directly, instead of using elm_widget_resize_object_set. Test Plan: check if objects inheriting from elm_widget do not set field directly. Reviewers: cedric, raster, seoz Subscribers: seoz Projects: #elementary Differential Revision: https://phab.enlightenment.org/D3362
This commit is contained in:
parent
36193a72fd
commit
ffbe03545f
|
@ -372,14 +372,6 @@ _elm_widget_evas_object_smart_add(Eo *obj, Elm_Widget_Smart_Data *priv)
|
|||
_obj_mouse_up, obj);
|
||||
evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_IN,
|
||||
_obj_mouse_in, obj);
|
||||
/* just a helper for inheriting classes */
|
||||
if (priv->resize_obj)
|
||||
{
|
||||
Evas_Object *r_obj = priv->resize_obj;
|
||||
priv->resize_obj = NULL;
|
||||
|
||||
elm_widget_resize_object_set(obj, r_obj, EINA_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue