summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-23 16:32:08 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-23 16:32:08 +0100
commit190d0aa7b635682dc5ce1f83cab28006eb8fc27e (patch)
tree23da36d9151a23c0dca7c952f41f29a11f75935c /efl
parent24318c8d3351d816827a0ad1e14fcb8c64484a2a (diff)
New 1.17 API: elm.Popup.dismiss()
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/popup.pxi19
-rw-r--r--efl/elementary/popup_cdef.pxi1
2 files changed, 20 insertions, 0 deletions
diff --git a/efl/elementary/popup.pxi b/efl/elementary/popup.pxi
index e14676a..90a54f8 100644
--- a/efl/elementary/popup.pxi
+++ b/efl/elementary/popup.pxi
@@ -211,6 +211,25 @@ cdef class Popup(LayoutClass):
211 def __get__(self): 211 def __get__(self):
212 return bool(elm_popup_allow_events_get(self.obj)) 212 return bool(elm_popup_allow_events_get(self.obj))
213 213
214 def dismiss(self):
215 """Dismiss a popup object.
216
217 .. versionadded:: 1.17
218
219 """
220 elm_popup_dismiss(self.obj)
221
222 def callback_dismissed_add(self, func, *args, **kwargs):
223 """When popup is closed as a result of a dismiss.
224
225 .. versionadded:: 1.17
226
227 """
228 self._callback_add("dismissed", func, args, kwargs)
229
230 def callback_dismissed_del(self, func):
231 self._callback_del("dismissed", func)
232
214 def callback_timeout_add(self, func, *args, **kwargs): 233 def callback_timeout_add(self, func, *args, **kwargs):
215 """When popup is closed as a result of timeout.""" 234 """When popup is closed as a result of timeout."""
216 self._callback_add("timeout", func, args, kwargs) 235 self._callback_add("timeout", func, args, kwargs)
diff --git a/efl/elementary/popup_cdef.pxi b/efl/elementary/popup_cdef.pxi
index 2216f5c..3f75bd4 100644
--- a/efl/elementary/popup_cdef.pxi
+++ b/efl/elementary/popup_cdef.pxi
@@ -33,3 +33,4 @@ cdef extern from "Elementary.h":
33 double elm_popup_timeout_get(const Evas_Object *obj) 33 double elm_popup_timeout_get(const Evas_Object *obj)
34 void elm_popup_allow_events_set(Evas_Object *obj, Eina_Bool allow) 34 void elm_popup_allow_events_set(Evas_Object *obj, Eina_Bool allow)
35 Eina_Bool elm_popup_allow_events_get(const Evas_Object *obj) 35 Eina_Bool elm_popup_allow_events_get(const Evas_Object *obj)
36 void elm_popup_dismiss(const Evas_Object *obj)