okay okay I'll even make sure it compiles
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Nov 2011 15:29:20 +0000 (15:29 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Nov 2011 15:29:20 +0000 (15:29 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64827 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gen.c

index f5f35a7..08b5a0c 100644 (file)
@@ -136,7 +136,12 @@ _item_content_set_hook(Elm_Gen_Item *it, const char *part, Evas_Object *content)
 static Evas_Object *
 _item_content_unset_hook(Elm_Gen_Item *it, const char *part)
 {
-   return edje_object_part_unswallow(VIEW(it), part);
+   Evas_Object *obj;
+
+   obj = edje_object_part_swallow_get(VIEW(it), part);
+   if (!obj) return NULL;
+   edje_object_part_unswallow(VIEW(it), obj);
+   return obj;
 }
 
 #if 0