[cbhm] change entry item checking to elm_entry
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 17 Sep 2010 01:24:10 +0000 (10:24 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 17 Sep 2010 01:24:10 +0000 (10:24 +0900)
src/lib/elm_entry.c
src/modules/ctxpopup_copypasteUI/copypaste.c
src/modules/popup_copypasteUI/copypaste.c

index 0e0e59a..1d6b8ec 100644 (file)
@@ -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
index 4bdfff3..68189e0 100644 (file)
@@ -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);
 }
 
index 8c177f3..745efab 100644 (file)
@@ -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);
 }