Elementary getlist: Fix places that weren't using ELM_GENLIST_ITEM_FROM_INLIST. Patch...
authorTom Hacohen <tom@stosb.com>
Wed, 2 Feb 2011 08:37:33 +0000 (08:37 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 2 Feb 2011 08:37:33 +0000 (08:37 +0000)
SVN revision: 56645

src/lib/elm_genlist.c

index 224d1ff..d572b64 100644 (file)
@@ -3138,10 +3138,10 @@ elm_genlist_clear(Evas_Object *obj)
 
         if (wd->anchor_item == it)
           {
-             wd->anchor_item = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->next);
+             wd->anchor_item = ELM_GENLIST_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next);
              if (!wd->anchor_item)
                wd->anchor_item =
-                 (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->prev);
+                 ELM_GENLIST_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev);
           }
         wd->items = eina_inlist_remove(wd->items, wd->items);
         if (it->flags & ELM_GENLIST_ITEM_GROUP)