summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-07-22 17:39:23 +0200
committerDave Andreoli <dave@gurumeditation.it>2017-07-22 17:39:23 +0200
commitc5759b6d67b20d7e4f3f4aacf8c013eef8af7afe (patch)
treee155bc9b8f30ea2494f9ba74096f2e04a5c057d2
parent5bbaba2a6ebad92aa2309ca546d774977201527f (diff)
New 1.20 API: elm.Menu.open()
-rw-r--r--efl/elementary/menu.pxi10
-rw-r--r--efl/elementary/menu_cdef.pxi1
2 files changed, 11 insertions, 0 deletions
diff --git a/efl/elementary/menu.pxi b/efl/elementary/menu.pxi
index fdada0a..223f75b 100644
--- a/efl/elementary/menu.pxi
+++ b/efl/elementary/menu.pxi
@@ -317,6 +317,16 @@ cdef class Menu(Object):
317 """ 317 """
318 elm_menu_move(self.obj, x, y) 318 elm_menu_move(self.obj, x, y)
319 319
320 def open(self):
321 """Open a closed menu
322
323 Show the menu with no child sub-menus expanded.
324
325 .. versionadded:: 1.20
326
327 """
328 elm_menu_open(self.obj)
329
320 def close(self): 330 def close(self):
321 """Close a opened menu 331 """Close a opened menu
322 332
diff --git a/efl/elementary/menu_cdef.pxi b/efl/elementary/menu_cdef.pxi
index bf734ee..2ab068a 100644
--- a/efl/elementary/menu_cdef.pxi
+++ b/efl/elementary/menu_cdef.pxi
@@ -4,6 +4,7 @@ cdef extern from "Elementary.h":
4 Evas_Object *elm_menu_parent_get(const Evas_Object *obj) 4 Evas_Object *elm_menu_parent_get(const Evas_Object *obj)
5 void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) 5 void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
6 void elm_menu_close(Evas_Object *obj) 6 void elm_menu_close(Evas_Object *obj)
7 void elm_menu_open(Evas_Object *obj)
7 Eina_List *elm_menu_items_get(const Evas_Object *obj) 8 Eina_List *elm_menu_items_get(const Evas_Object *obj)
8 Evas_Object *elm_menu_item_object_get(const Elm_Object_Item *it) 9 Evas_Object *elm_menu_item_object_get(const Elm_Object_Item *it)
9 Elm_Object_Item *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, void *data) 10 Elm_Object_Item *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, void *data)