[entry] adding textonly mode to modules
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 14 Jan 2011 06:44:45 +0000 (15:44 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 14 Jan 2011 06:44:45 +0000 (15:44 +0900)
src/lib/elm_entry.c
src/lib/elm_module_priv.h
src/modules/ctxpopup_copypasteUI/copypaste.c
src/modules/popup_copypasteUI/copypaste.c

index 4ae8b60..73c78e7 100644 (file)
@@ -865,7 +865,10 @@ _clipboard_menu(void *data, Evas_Object *obj, void *event_info __UNUSED__)
    ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
    cnpwidgetdata = data;
    elm_cbhm_helper_init(obj);
-   elm_cbhm_send_raw_data("show");
+   if (elm_entry_cnp_textonly_get(obj))
+          elm_cbhm_send_raw_data("show0");
+   else
+          elm_cbhm_send_raw_data("show1");
    // end for cbhm
 }
 
@@ -2206,6 +2209,7 @@ EAPI void elm_entry_extension_module_data_get(Evas_Object *obj,Elm_Entry_Extensi
    ext_mod->selmode = wd->selmode;
    ext_mod->cnpinit = _cnpinit;
    ext_mod->context_menu = wd->context_menu;
+   ext_mod->textonly = wd->textonly;
 }
 
 /**
index 15acae3..f9b8570 100644 (file)
@@ -22,6 +22,7 @@ struct _Elm_Entry_Extension_data
        Eina_Bool have_selection: 1;\r
        Eina_Bool selmode :1;\r
        Eina_Bool context_menu : 1;\r
+       Eina_Bool textonly : 1;\r
 };\r
 \r
 EAPI void elm_entry_extension_module_data_get(Evas_Object *obj,Elm_Entry_Extension_data *ext_mod);\r
index a306ca2..c7d3382 100644 (file)
@@ -90,7 +90,10 @@ _clipboard_menu(void *data, Evas_Object *obj, void *event_info)
        ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
        ext_mod->cnpinit(data,obj,event_info);
        elm_cbhm_helper_init(obj);
-       elm_cbhm_send_raw_data("show");
+       if (ext_mod->textonly)
+               elm_cbhm_send_raw_data("show0");
+       else
+               elm_cbhm_send_raw_data("show1");
        evas_object_hide(obj);
        // end for cbhm
 }
index b8f87bb..b3beebd 100644 (file)
@@ -58,7 +58,10 @@ _clipboard_menu(void *data, Evas_Object *obj, void *event_info)
        ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
        ext_mod->cnpinit(data,obj,event_info);
        elm_cbhm_helper_init(obj);
-       elm_cbhm_send_raw_data("show");
+        if (ext_mod->textonly)
+               elm_cbhm_send_raw_data("show0");
+       else
+               elm_cbhm_send_raw_data("show1");
        evas_object_hide(ext_mod->popup);
        // end for cbhm
 }