From 6b0a01cccf9c785c63bf4695f4b2bb14f628ae2a Mon Sep 17 00:00:00 2001 From: Myungjae Lee Date: Mon, 7 Feb 2011 14:14:03 +0900 Subject: [PATCH] [copypaste module] changed contextual popup item style to image --- src/modules/ctxpopup_copypasteshareUI/copypaste.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/modules/ctxpopup_copypasteshareUI/copypaste.c b/src/modules/ctxpopup_copypasteshareUI/copypaste.c index d51f335..fe6fb77 100644 --- a/src/modules/ctxpopup_copypasteshareUI/copypaste.c +++ b/src/modules/ctxpopup_copypasteshareUI/copypaste.c @@ -173,6 +173,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); @@ -208,7 +210,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 @@ -222,7 +230,11 @@ obj_longpress(Evas_Object *obj) elm_ctxpopup_item_append(ext_mod->popup, "Cut", NULL, _cut, obj ); if (ext_mod->editable) elm_ctxpopup_item_append(ext_mod->popup, "Paste", NULL, _paste, obj ); - elm_ctxpopup_item_append(ext_mod->popup, "Share", NULL, _share, obj); + icon = elm_icon_add(ext_mod->popup); + snprintf(buf, sizeof(buf), "%s/images/copypaste_icon_share.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, "Share", NULL, _share, obj); } else { @@ -236,7 +248,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 } } -- 2.7.4