From: Enlightenment S. <no-...@en...> - 2012-04-02 12:33:41
|
Log: elementary/button : Some codes were duplicated in _sub_del and _content_unset_hook. Author: woohyun Date: 2012-04-02 05:33:29 -0700 (Mon, 02 Apr 2012) New Revision: 69861 Trac: http://trac.enlightenment.org/e/changeset/69861 Modified: trunk/elementary/src/lib/elm_button.c Modified: trunk/elementary/src/lib/elm_button.c =================================================================== --- trunk/elementary/src/lib/elm_button.c 2012-04-02 12:25:42 UTC (rev 69860) +++ trunk/elementary/src/lib/elm_button.c 2012-04-02 12:33:29 UTC (rev 69861) @@ -222,10 +222,7 @@ if (!wd->icon) return NULL; Evas_Object *icon = wd->icon; elm_widget_sub_object_del(obj, wd->icon); - evas_object_event_callback_del_full(wd->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, - _changed_size_hints, obj); - edje_object_part_unswallow(wd->btn, wd->icon); - wd->icon = NULL; + edje_object_part_unswallow(wd->btn, icon); return icon; } |