From 37b974fbb23ed3e5fcc6168a89b7a49e206f2f14 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Fri, 17 Sep 2010 10:24:10 +0900 Subject: [PATCH] [cbhm] change entry item checking to elm_entry --- src/lib/elm_entry.c | 8 ++++++++ src/modules/ctxpopup_copypasteUI/copypaste.c | 7 ------- src/modules/popup_copypasteUI/copypaste.c | 8 -------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 0e0e59a..1d6b8ec 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -596,6 +596,14 @@ _item_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED Elm_Entry_Context_Menu_Item *it = data; Evas_Object *obj2 = it->obj; if (it->func) it->func(it->data, obj2, NULL); + + // start for cbhm + if (!strcmp(it->label, "Menu")) + { + elm_cbhm_helper_init(obj); + elm_cbhm_send_raw_data("show"); + } + // end for cbhm } static Eina_Bool diff --git a/src/modules/ctxpopup_copypasteUI/copypaste.c b/src/modules/ctxpopup_copypasteUI/copypaste.c index 4bdfff3..68189e0 100644 --- a/src/modules/ctxpopup_copypasteUI/copypaste.c +++ b/src/modules/ctxpopup_copypasteUI/copypaste.c @@ -71,13 +71,6 @@ _item_clicked(void *data, Evas_Object *obj, void *event_info) Evas_Object *obj2 = it->obj; if (it->func) it->func(it->data, obj2, NULL); - // start for cbhm - if (!strcmp(it->label, "Menu")) - { - elm_cbhm_helper_init(obj); - elm_cbhm_send_raw_data("show"); - } - // end for cbhm evas_object_hide(obj); } diff --git a/src/modules/popup_copypasteUI/copypaste.c b/src/modules/popup_copypasteUI/copypaste.c index 8c177f3..745efab 100644 --- a/src/modules/popup_copypasteUI/copypaste.c +++ b/src/modules/popup_copypasteUI/copypaste.c @@ -46,14 +46,6 @@ _item_clicked(void *data, Evas_Object *obj, void *event_info) Evas_Object *obj2 = it->obj; if (it->func) it->func(it->data, obj2, NULL); - // start for cbhm - if (!strcmp(it->label, "Menu")) - { - elm_cbhm_helper_init(obj); - elm_cbhm_set_me_as_target(elm_win_xwindow_get(obj)); - elm_cbhm_send_raw_data("show"); - } - // end for cbhm evas_object_hide(ext_mod->popup); } -- 2.7.4