From: cnook <kimcinoo@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Jan 2012 09:47:10 +0000 (09:47 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Jan 2012 09:47:10 +0000 (09:47 +0000)
Subject: [E-devel] [Patch] Removing content resize callback before the
ctxpopup is deleted.

Sometimes, widget data is referred after ctxpopup is deleted.
So before the ctxpopup is deleted, the content resize callback should
be removed.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67268 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_ctxpopup.c

index 4816eaa..d749e73 100644 (file)
@@ -729,6 +729,8 @@ _del_pre_hook(Evas_Object *obj)
    wd = elm_widget_data_get(obj);
    if (!wd) return;
 
+   evas_object_event_callback_del_full(wd->box, EVAS_CALLBACK_RESIZE,
+                                       _content_resize, obj);
    _parent_cut_off(obj);
 }