From: Myungjae Lee Date: Tue, 1 Feb 2011 09:41:31 +0000 (+0900) Subject: [entry] changed copy paste contextual popup style X-Git-Tag: REL_I9200_20110603-1~407^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cc0ccb807afca9156cadd336b03f70bd49259ef;p=framework%2Fuifw%2Felementary.git [entry] changed copy paste contextual popup style --- diff --git a/data/images/Makefile.am b/data/images/Makefile.am index baf9ed5..6b56b58 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -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 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 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 index 0000000..d9fb7fb Binary files /dev/null and b/data/images/copypaste_icon_share.png differ diff --git a/src/modules/ctxpopup_copypasteUI/copypaste.c b/src/modules/ctxpopup_copypasteUI/copypaste.c index 5eddacb..b095e7b 100644 --- a/src/modules/ctxpopup_copypasteUI/copypaste.c +++ b/src/modules/ctxpopup_copypasteUI/copypaste.c @@ -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 } }