elm: Fix edit popup menu order
authorAndy Williams <andy@andywilliams.me>
Sat, 17 Sep 2016 22:58:55 +0000 (23:58 +0100)
committerAndy Williams <andy@andywilliams.me>
Sat, 17 Sep 2016 22:58:55 +0000 (23:58 +0100)
Cut/Copy/Paste is the standard order most other places.
@fix

src/lib/elementary/efl_ui_text.c
src/lib/elementary/elm_entry.c

index 1f2cbbf..18a8de1 100644 (file)
@@ -1582,19 +1582,17 @@ _menu_call(Evas_Object *obj)
           {
              if (!sd->password)
                {
+                  if (sd->editable)
+                    elm_hoversel_item_add
+                       (sd->hoversel, E_("Cut"), NULL, ELM_ICON_NONE,
+                        _hoversel_item_cut_cb, obj);
                   elm_hoversel_item_add
                      (sd->hoversel, E_("Copy"), NULL, ELM_ICON_NONE,
                       _hoversel_item_copy_cb, obj);
-                  if (sd->editable)
-                    {
-                       elm_hoversel_item_add
-                          (sd->hoversel, E_("Cut"), NULL, ELM_ICON_NONE,
-                           _hoversel_item_cut_cb, obj);
-                       if (ownersel)
-                         elm_hoversel_item_add
-                            (sd->hoversel, E_("Paste"), NULL, ELM_ICON_NONE,
-                             _hoversel_item_paste_cb, obj);
-                    }
+                  if (sd->editable && ownersel)
+                    elm_hoversel_item_add
+                       (sd->hoversel, E_("Paste"), NULL, ELM_ICON_NONE,
+                        _hoversel_item_paste_cb, obj);
                   elm_hoversel_item_add
                     (sd->hoversel, E_("Cancel"), NULL, ELM_ICON_NONE,
                     _hover_cancel_cb, obj);
index d7bbdf4..7bb79c7 100644 (file)
@@ -1683,19 +1683,17 @@ _menu_call(Evas_Object *obj)
           {
              if (!sd->password)
                {
+                  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_("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);
-                       if (ownersel)
-                         elm_hoversel_item_add
-                            (sd->hoversel, E_("Paste"), NULL, ELM_ICON_NONE,
-                             _paste_cb, obj);
-                    }
+                  if (sd->editable && 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);