summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-27 22:58:06 +0100
committerdavemds <dave@gurumeditation.it>2014-02-27 22:58:06 +0100
commit65f43c5bee3874d07a58a3cd73f83b492a9f3e69 (patch)
tree9a450b9f8d669f5b965597e2d5d52f22d19a2919 /efl
parentb04147b5f3772f1526e6ffcddbfde71252ec4917 (diff)
Python-EFL: New 1.9 API: Ctxpopup.auto_hide_disabled
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/ctxpopup.pxd4
-rw-r--r--efl/elementary/ctxpopup.pyx23
2 files changed, 26 insertions, 1 deletions
diff --git a/efl/elementary/ctxpopup.pxd b/efl/elementary/ctxpopup.pxd
index d3378c1..47bf43f 100644
--- a/efl/elementary/ctxpopup.pxd
+++ b/efl/elementary/ctxpopup.pxd
@@ -1,4 +1,4 @@
1from efl.evas cimport Eina_Bool, Evas_Object, Evas_Smart_Cb 1from efl.evas cimport Eina_Bool, Evas_Object, const_Evas_Object, Evas_Smart_Cb
2from object_item cimport Elm_Object_Item 2from object_item cimport Elm_Object_Item
3from enums cimport Elm_Ctxpopup_Direction 3from enums cimport Elm_Ctxpopup_Direction
4from libc.string cimport const_char 4from libc.string cimport const_char
@@ -15,4 +15,6 @@ cdef extern from "Elementary.h":
15 void elm_ctxpopup_direction_priority_get(Evas_Object *obj, Elm_Ctxpopup_Direction *first, Elm_Ctxpopup_Direction *second, Elm_Ctxpopup_Direction *third, Elm_Ctxpopup_Direction *fourth) 15 void elm_ctxpopup_direction_priority_get(Evas_Object *obj, Elm_Ctxpopup_Direction *first, Elm_Ctxpopup_Direction *second, Elm_Ctxpopup_Direction *third, Elm_Ctxpopup_Direction *fourth)
16 Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(Evas_Object *obj) 16 Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(Evas_Object *obj)
17 void elm_ctxpopup_dismiss(Evas_Object *obj) 17 void elm_ctxpopup_dismiss(Evas_Object *obj)
18 void elm_ctxpopup_auto_hide_disabled_set(Evas_Object *obj, Eina_Bool disabled)
19 Eina_Bool elm_ctxpopup_auto_hide_disabled_get(const_Evas_Object *obj)
18 20
diff --git a/efl/elementary/ctxpopup.pyx b/efl/elementary/ctxpopup.pyx
index c59deef..ec895bd 100644
--- a/efl/elementary/ctxpopup.pyx
+++ b/efl/elementary/ctxpopup.pyx
@@ -316,6 +316,29 @@ cdef class Ctxpopup(LayoutClass):
316 """ 316 """
317 elm_ctxpopup_dismiss(self.obj) 317 elm_ctxpopup_dismiss(self.obj)
318 318
319 property auto_hide_disabled:
320 """Set ctxpopup auto hide mode triggered by ctxpopup policy.
321
322 Use this property when you want ctxpopup not to hide automatically.
323 By default, ctxpopup is dismissed whenever mouse clicked its background
324 area, language is changed, and its parent geometry is updated(changed).
325
326 :type: bool
327
328 .. versionadded:: 1.9
329
330 """
331 def __get__(self):
332 return bool(elm_ctxpopup_auto_hide_disabled_get(self.obj))
333
334 def __set__(self, disabled):
335 elm_ctxpopup_auto_hide_disabled_set(self.obj, disabled)
336
337 def auto_hide_disabled_get(self):
338 return bool(elm_ctxpopup_auto_hide_disabled_get(self.obj))
339 def auto_hide_disabled_set(self, disabled):
340 elm_ctxpopup_auto_hide_disabled_set(self.obj, disabled)
341
319 def callback_dismissed_add(self, func, *args, **kwargs): 342 def callback_dismissed_add(self, func, *args, **kwargs):
320 """the ctxpopup was dismissed""" 343 """the ctxpopup was dismissed"""
321 self._callback_add("dismissed", func, *args, **kwargs) 344 self._callback_add("dismissed", func, *args, **kwargs)