diff options
author | Jaehwan Kim <jae.hwan.kim@samsung.com> | 2015-07-07 16:32:46 +0900 |
---|---|---|
committer | Jaehwan Kim <jae.hwan.kim@samsung.com> | 2015-07-07 16:39:01 +0900 |
commit | 9f3323cc654d906e2ba79bee6ea8889a65492802 (patch) | |
tree | c69c164839868b795b5760cf969008fc853ab6bd | |
parent | 8033c99786e7ca1c421ffa2d10781dc60c7b978c (diff) | |
download | elementary-9f3323cc654d906e2ba79bee6ea8889a65492802.tar.gz |
elm_conform: remove smart_callback when it is removed.
The owner of the smart_callbacks is window. so even if the conformant
is deleted, they aren't removed. It can make some problems.
@fix
-rw-r--r-- | src/lib/elm_conform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index dcb617b9e..b18642b3e 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -905,6 +905,11 @@ _elm_conformant_evas_object_smart_del(Eo *obj, Elm_Conformant_Data *sd) evas_object_data_set(sd->win, "\377 elm,conformant", NULL); + evas_object_smart_callback_del_full + (sd->win, "indicator,prop,changed", _on_indicator_mode_changed, obj); + evas_object_smart_callback_del_full + (sd->win, "rotation,changed", _on_rotation_changed, obj); + eo_do_super(obj, MY_CLASS, evas_obj_smart_del()); } |