[entry] changed copy paste contextual popup style
authorMyungjae Lee <mjae.lee@samsung.com>
Tue, 1 Feb 2011 09:41:31 +0000 (18:41 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Tue, 1 Feb 2011 09:41:31 +0000 (18:41 +0900)
data/images/Makefile.am
data/images/copypaste_icon_clipboard.png [new file with mode: 0755]
data/images/copypaste_icon_search.png [new file with mode: 0755]
data/images/copypaste_icon_share.png [new file with mode: 0755]
src/modules/ctxpopup_copypasteUI/copypaste.c

index baf9ed5..6b56b58 100644 (file)
@@ -41,6 +41,9 @@ icon_22.png \
 icon_23.png \
 bubble.png \
 bubble_sh.png \
+copypaste_icon_clipboard.png \
+copypaste_icon_search.png \
+copypaste_icon_share.png \
 mystrale.jpg \
 mystrale_2.jpg
 
diff --git a/data/images/copypaste_icon_clipboard.png b/data/images/copypaste_icon_clipboard.png
new file mode 100755 (executable)
index 0000000..0248f07
Binary files /dev/null and b/data/images/copypaste_icon_clipboard.png differ
diff --git a/data/images/copypaste_icon_search.png b/data/images/copypaste_icon_search.png
new file mode 100755 (executable)
index 0000000..6d6b164
Binary files /dev/null and b/data/images/copypaste_icon_search.png differ
diff --git a/data/images/copypaste_icon_share.png b/data/images/copypaste_icon_share.png
new file mode 100755 (executable)
index 0000000..d9fb7fb
Binary files /dev/null and b/data/images/copypaste_icon_share.png differ
index 5eddacb..b095e7b 100644 (file)
@@ -150,6 +150,8 @@ obj_longpress(Evas_Object *obj)
        const Eina_List *l;
        const Elm_Entry_Context_Menu_Item *it;
        const char *context_menu_orientation;
+       char buf[255];
+       Evas_Object* icon;
 
        /*update*/
        elm_entry_extension_module_data_get(obj,ext_mod);
@@ -185,7 +187,13 @@ obj_longpress(Evas_Object *obj)
        //              elm_ctxpopup_item_append(wd->ctxpopup, NULL, "Selectall",_select_all, obj );
        // start for cbhm
                        if (!ext_mod->password)
-                               elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
+                       {
+                               icon = elm_icon_add(ext_mod->popup);
+                               snprintf(buf, sizeof(buf), "%s/images/copypaste_icon_clipboard.png", PACKAGE_DATA_DIR);
+                               elm_icon_file_set(icon, buf, NULL);
+                               elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _clipboard_menu, obj);
+                               //elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
+                       }
        // end for cbhm
                }
                else
@@ -212,7 +220,11 @@ obj_longpress(Evas_Object *obj)
                                                                }
                                                }
        // start for cbhm
-                                                       elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
+                                       icon = elm_icon_add(ext_mod->popup);
+                                       snprintf(buf, sizeof(buf), "%s/images/copypaste_icon_clipboard.png", PACKAGE_DATA_DIR);
+                                       elm_icon_file_set(icon, buf, NULL);
+                                       elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _clipboard_menu, obj);
+                                       //elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
        // end for cbhm
                                }
                }