use sub-object-del signal for win stuff
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Dec 2011 15:27:32 +0000 (15:27 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Dec 2011 15:27:32 +0000 (15:27 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65910 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_widget.c
src/lib/elm_win.c

index f6775c1..2c50c40 100644 (file)
@@ -945,7 +945,6 @@ elm_widget_sub_object_add(Evas_Object *obj,
                                             _sub_obj_del);
           }
      }
-   evas_object_smart_callback_call(sobj, "win-resize-del-private-dont-use-this. seriously", NULL);
    sd->subobjs = eina_list_append(sd->subobjs, sobj);
    evas_object_data_set(sobj, "elm-parent", obj);
    evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL, _sub_obj_del, sd);
index 2df4827..ccd2804 100644 (file)
@@ -1378,7 +1378,6 @@ _subobj_del(Evas_Object *obj, Evas_Object *subobj, void *event_info __UNUSED__)
    evas_object_event_callback_del_full(subobj, EVAS_CALLBACK_DEL,
                                        _elm_win_subobj_callback_del, obj);
    win->subobjs = eina_list_remove(win->subobjs, subobj);
-   evas_object_smart_callback_del(subobj, "win-resize-del-private-dont-use-this. seriously", (Evas_Smart_Cb)_subobj_del);
    _elm_win_eval_subobjs(obj);
 }
 
@@ -1693,7 +1692,7 @@ elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj)
    evas_object_geometry_get(obj, NULL, NULL, &w, &h);
    evas_object_move(subobj, 0, 0);
    evas_object_resize(subobj, w, h);
-   evas_object_smart_callback_add(subobj, "win-resize-del-private-dont-use-this. seriously", (Evas_Smart_Cb)_subobj_del, obj);
+   evas_object_smart_callback_add(subobj, "sub-object-del", (Evas_Smart_Cb)_subobj_del, obj);
    _elm_win_eval_subobjs(obj);
 }