ryuan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=0538362bdd04ecf88081f3453294f3fb692ef794

commit 0538362bdd04ecf88081f3453294f3fb692ef794
Author: Ryuan Choi <ryuan.c...@gmail.com>
Date:   Sun Dec 29 19:34:31 2013 +0900

    entry: Show "Paste" option when called ctxpopup with selection
    
    "Paste" is usefull not only for pasting clipboard but also for replacing
    selection to clipboard.
---
 src/lib/elm_entry.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 873cfd4..2f07f81 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);

-- 


Reply via email to