summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-14 21:14:52 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-15 13:11:01 -0500
commit66ee9cf3e2475f3e7ae8c513391ac522e6890665 (patch)
tree4a071ca3c9d71dae2b2ed99c0178553977438116
parent996671ce263ba40cecf5229aefadc69a58420f6e (diff)
elm_menu: move -> relative_move
-rw-r--r--src/lib/elementary/elm_menu.c2
-rw-r--r--src/lib/elementary/elm_menu.eo3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_menu.c b/src/lib/elementary/elm_menu.c
index 3c670162d2..a632b0eacc 100644
--- a/src/lib/elementary/elm_menu.c
+++ b/src/lib/elementary/elm_menu.c
@@ -981,7 +981,7 @@ _elm_menu_efl_ui_widget_widget_parent_get(Eo *obj EINA_UNUSED, Elm_Menu_Data *sd
981} 981}
982 982
983EOLIAN static void 983EOLIAN static void
984_elm_menu_move(Eo *obj, Elm_Menu_Data *sd, Evas_Coord x, Evas_Coord y) 984_elm_menu_relative_move(Eo *obj, Elm_Menu_Data *sd, Evas_Coord x, Evas_Coord y)
985{ 985{
986 sd->xloc = x; 986 sd->xloc = x;
987 sd->yloc = y; 987 sd->yloc = y;
diff --git a/src/lib/elementary/elm_menu.eo b/src/lib/elementary/elm_menu.eo
index a808f29af1..aecdc05761 100644
--- a/src/lib/elementary/elm_menu.eo
+++ b/src/lib/elementary/elm_menu.eo
@@ -6,13 +6,14 @@ class Elm.Menu (Efl.Ui.Widget, Efl.Ui.Clickable, Efl.Ui.Menu,
6 eo_prefix: elm_obj_menu; 6 eo_prefix: elm_obj_menu;
7 event_prefix: elm_menu; 7 event_prefix: elm_menu;
8 methods { 8 methods {
9 move { 9 relative_move {
10 [[Move the menu to a new position 10 [[Move the menu to a new position
11 11
12 Sets the top-left position of the menu to ($x, $y). 12 Sets the top-left position of the menu to ($x, $y).
13 13
14 Note: $x and $y coordinates are relative to parent. 14 Note: $x and $y coordinates are relative to parent.
15 ]] 15 ]]
16 legacy: elm_menu_move;
16 params { 17 params {
17 @in x: int; [[The new X coordinate]] 18 @in x: int; [[The new X coordinate]]
18 @in y: int; [[The new Y coordinate]] 19 @in y: int; [[The new Y coordinate]]