diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2015-12-24 14:03:54 +0900 |
---|---|---|
committer | Hermet Park <hermet@hermet.pe.kr> | 2015-12-24 14:03:54 +0900 |
commit | f7726c72290cd7341132939c5b6f8c0468f60e87 (patch) | |
tree | 0a654c0594ebb8f80d01d796aeff77c1b0f07a4c | |
parent | ec5cf083566c2e6773fb6e626121df7e344d852e (diff) | |
download | elementary-f7726c72290cd7341132939c5b6f8c0468f60e87.tar.gz |
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
-rw-r--r-- | src/lib/elm_widget.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 9ca241e90..f917d2917 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -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 |