[elm_genlist.c] Temporary fix for elm_genlist_clear().
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 10 Jan 2011 12:51:13 +0000 (21:51 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 10 Jan 2011 12:51:13 +0000 (21:51 +0900)
src/lib/elm_genlist.c

index a02e194..f4893ca 100644 (file)
@@ -2910,6 +2910,14 @@ elm_genlist_clear(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
 
+   /** this is temporary code **/
+   Elm_Genlist_Item *it;
+   while ((it = elm_genlist_first_item_get(obj))) {
+              elm_genlist_item_del(it);
+   }
+   return;
+   /** this should be fixed **/
+
    wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_NONE;
    wd->pinchzoom_effect_mode = ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE;
    elm_smart_scroller_hold_set(wd->scr, 0);
@@ -2924,8 +2932,6 @@ elm_genlist_clear(Evas_Object *obj)
         //  ecore_timer_del(wd->item_moving_effect_timer);
         wd->item_moving_effect_timer = NULL;
      }
-
-
    if (wd->walking > 0)
      {
         Elm_Genlist_Item *it;