From: Ryuan Choi Date: Sun, 29 Dec 2013 10:34:31 +0000 (+0900) Subject: entry: Show "Paste" option when called ctxpopup with selection X-Git-Tag: v1.9.0-alpha1~344 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0538362bdd04ecf88081f3453294f3fb692ef794;p=platform%2Fupstream%2Felementary.git entry: Show "Paste" option when called ctxpopup with selection "Paste" is usefull not only for pasting clipboard but also for replacing selection to clipboard. --- diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 873cfd4c1..2f07f81e1 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1332,9 +1332,15 @@ _menu_call(Evas_Object *obj) (sd->hoversel, E_("Copy"), NULL, ELM_ICON_NONE, _copy_cb, obj); if (sd->editable) - elm_hoversel_item_add - (sd->hoversel, E_("Cut"), NULL, ELM_ICON_NONE, - _cut_cb, obj); + { + elm_hoversel_item_add + (sd->hoversel, E_("Cut"), NULL, ELM_ICON_NONE, + _cut_cb, obj); + if (ownersel) + elm_hoversel_item_add + (sd->hoversel, E_("Paste"), NULL, ELM_ICON_NONE, + _paste_cb, obj); + } elm_hoversel_item_add (sd->hoversel, E_("Cancel"), NULL, ELM_ICON_NONE, _hover_cancel_cb, obj);