[elm_genlist.c] Fxied elm_genlist_item_display_only_set() API.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 21 Mar 2011 09:35:30 +0000 (18:35 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 21 Mar 2011 09:36:30 +0000 (18:36 +0900)
  This is from upstream.

src/lib/elm_genlist.c

index ffb205c..c7850e5 100644 (file)
@@ -909,8 +909,7 @@ static void
 _item_hilight(Elm_Genlist_Item *it)
 {
    const char *selectraise;
-   if ((it->wd->no_select) || (it->delete_me) || (it->hilighted) ||
-       (it->disabled)) return;
+   if ((it->wd->no_select) || (it->delete_me) || (it->hilighted) || (it->disabled) || (it->display_only)) return;
    if ((!it->sweeped) && (!it->wd->edit_mode))
       edje_object_signal_emit(it->base.view, "elm,state,selected", "elm");
    selectraise = edje_object_data_get(it->base.view, "selectraise");
@@ -4315,13 +4314,12 @@ elm_genlist_item_display_only_set(Elm_Genlist_Item *it,
                                   Eina_Bool         display_only)
 {
    ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
-   if (!it->block) return;
    if (it->display_only == display_only) return;
    if (it->delete_me) return;
    it->display_only = display_only;
    it->mincalcd = EINA_FALSE;
    it->updateme = EINA_TRUE;
-   it->block->updateme = EINA_TRUE;
+   if (it->block) it->block->updateme = EINA_TRUE;
    if (it->wd->update_job) ecore_job_del(it->wd->update_job);
    it->wd->update_job = ecore_job_add(_update_job, it->wd);
 }