From dc904b26ba90e8d9ac07a67973a75886dddaed5b Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Mon, 20 Dec 2010 15:10:49 +0900 Subject: [PATCH] set gengrid selected item to false --- src/clipdrawer.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/clipdrawer.c b/src/clipdrawer.c index c2a05f0..f582819 100644 --- a/src/clipdrawer.c +++ b/src/clipdrawer.c @@ -164,6 +164,8 @@ _grid_item_ly_clicked(void *data, Evas_Object *obj, const char *emission, const return; } + elm_gengrid_item_selected_set(sgobj, EINA_FALSE); + if (ti->itype == GI_TEXT) { char *p = strdup(eina_strbuf_string_get(ti->istrdata)); @@ -179,11 +181,17 @@ _grid_item_ly_clicked(void *data, Evas_Object *obj, const char *emission, const elm_selection_set(/*secondary*/1,obj,/*ELM_SEL_FORMAT_IMAGE*/4,p); } - elm_gengrid_item_selected_set(sgobj, EINA_FALSE); + return; + } + if (!sgobj) + { + DTRACE("ERR: cbhm can't get the selected item\n"); return; } + elm_gengrid_item_selected_set(sgobj, EINA_FALSE); + Evas_Object *popup = elm_popup_add(ad->win_main); elm_popup_timeout_set(popup, 5); evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -194,8 +202,6 @@ _grid_item_ly_clicked(void *data, Evas_Object *obj, const char *emission, const NULL); evas_object_smart_callback_add(popup, "response", _grid_del_response_cb, sgobj); evas_object_show(popup); - - elm_gengrid_item_selected_set(sgobj, EINA_FALSE); } @@ -584,7 +590,7 @@ int clipdrawer_create_view(void *data) // for debug // at starting, showing app view - clipdrawer_activate_view(ad); + // clipdrawer_activate_view(ad); return 0; } -- 2.7.4