entry: Show "Paste" option when called ctxpopup with selection

"Paste" is usefull not only for pasting clipboard but also for replacing
selection to clipboard.
This commit is contained in:
Ryuan Choi 2013-12-29 19:34:31 +09:00
parent e26c97d55c
commit a797f529e7
1 changed files with 9 additions and 3 deletions

View File

@ -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);