davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=65f43c5bee3874d07a58a3cd73f83b492a9f3e69

commit 65f43c5bee3874d07a58a3cd73f83b492a9f3e69
Author: davemds <[email protected]>
Date:   Thu Feb 27 22:58:06 2014 +0100

    Python-EFL: New 1.9 API: Ctxpopup.auto_hide_disabled
---
 efl/elementary/ctxpopup.pxd |  4 +++-
 efl/elementary/ctxpopup.pyx | 23 +++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

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 @@
-from efl.evas cimport Eina_Bool, Evas_Object, Evas_Smart_Cb
+from efl.evas cimport Eina_Bool, Evas_Object, const_Evas_Object, Evas_Smart_Cb
 from object_item cimport Elm_Object_Item
 from enums cimport Elm_Ctxpopup_Direction
 from libc.string cimport const_char
@@ -15,4 +15,6 @@ cdef extern from "Elementary.h":
     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)
     Elm_Ctxpopup_Direction   elm_ctxpopup_direction_get(Evas_Object *obj)
     void                     elm_ctxpopup_dismiss(Evas_Object *obj)
+    void                     elm_ctxpopup_auto_hide_disabled_set(Evas_Object 
*obj, Eina_Bool disabled)
+    Eina_Bool                
elm_ctxpopup_auto_hide_disabled_get(const_Evas_Object *obj)
 
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):
         """
         elm_ctxpopup_dismiss(self.obj)
 
+    property auto_hide_disabled:
+        """Set ctxpopup auto hide mode triggered by ctxpopup policy.
+
+        Use this property when you want ctxpopup not to hide automatically.
+        By default, ctxpopup is dismissed whenever mouse clicked its background
+        area, language is changed, and its parent geometry is updated(changed).
+        
+        :type: bool
+
+        .. versionadded:: 1.9
+
+        """
+        def __get__(self):
+            return bool(elm_ctxpopup_auto_hide_disabled_get(self.obj))
+
+        def __set__(self, disabled):
+            elm_ctxpopup_auto_hide_disabled_set(self.obj, disabled)
+
+    def auto_hide_disabled_get(self):
+        return bool(elm_ctxpopup_auto_hide_disabled_get(self.obj))
+    def auto_hide_disabled_set(self, disabled):
+        elm_ctxpopup_auto_hide_disabled_set(self.obj, disabled)
+
     def callback_dismissed_add(self, func, *args, **kwargs):
         """the ctxpopup was dismissed"""
         self._callback_add("dismissed", func, *args, **kwargs)

-- 


Reply via email to