dont add to win resize objs if alread one
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 May 2011 01:24:43 +0000 (01:24 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 May 2011 01:24:43 +0000 (01:24 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59605 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_win.c

index 1fcff8d..48a65f4 100644 (file)
@@ -1596,6 +1596,7 @@ elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj)
    ELM_CHECK_WIDTYPE(obj, widtype);
    win = elm_widget_data_get(obj);
    if (!win) return;
+   if (eina_list_data_find(win->subobjs, subobj)) return;
    win->subobjs = eina_list_append(win->subobjs, subobj);
    elm_widget_sub_object_add(obj, subobj);
    evas_object_event_callback_add(subobj, EVAS_CALLBACK_DEL,