summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-05-01 19:29:34 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-05-01 19:29:34 +0300
commit56b87e0956ead411793de7820c7e1909d3ee0924 (patch)
treec862f37f060d893e239c30647448196a8ceaca78 /efl
parent927320a247116c610e95c6285eca3e7c37b5dd2b (diff)
elementary.toolbar: Add a hack for the property "menu"
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/toolbar.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/efl/elementary/toolbar.pyx b/efl/elementary/toolbar.pyx
index 6c59b15..e939c1c 100644
--- a/efl/elementary/toolbar.pyx
+++ b/efl/elementary/toolbar.pyx
@@ -679,6 +679,7 @@ cdef class ToolbarItem(ObjectItem):
679 679
680 """ 680 """
681 def __get__(self): 681 def __get__(self):
682 import efl.elementary.menu # XXX: Hack for class not being known
682 return object_from_instance(elm_toolbar_item_menu_get(self.item)) 683 return object_from_instance(elm_toolbar_item_menu_get(self.item))
683 684
684 def __set__(self, menu): 685 def __set__(self, menu):
@@ -687,6 +688,7 @@ cdef class ToolbarItem(ObjectItem):
687 def menu_set(self, menu): 688 def menu_set(self, menu):
688 elm_toolbar_item_menu_set(self.item, menu) 689 elm_toolbar_item_menu_set(self.item, menu)
689 def menu_get(self): 690 def menu_get(self):
691 import efl.elementary.menu # XXX: Hack for class not being known
690 return object_from_instance(elm_toolbar_item_menu_get(self.item)) 692 return object_from_instance(elm_toolbar_item_menu_get(self.item))
691 693
692 694