summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-23 16:40:49 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-23 16:40:49 +0100
commitcab804e69b47c4792a8c56bc9e27ca7be1610683 (patch)
tree669a1f1b11275d418ac31c8a959d73a8416792a6 /efl
parent190d0aa7b635682dc5ce1f83cab28006eb8fc27e (diff)
New 1.17 API: elm.Notity.dismiss()
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/notify.pxi18
-rw-r--r--efl/elementary/notify_cdef.pxi2
2 files changed, 19 insertions, 1 deletions
diff --git a/efl/elementary/notify.pxi b/efl/elementary/notify.pxi
index f9659d7..1d9d798 100644
--- a/efl/elementary/notify.pxi
+++ b/efl/elementary/notify.pxi
@@ -110,6 +110,13 @@ cdef class Notify(Object):
110 def allow_events_get(self): 110 def allow_events_get(self):
111 return bool(elm_notify_allow_events_get(self.obj)) 111 return bool(elm_notify_allow_events_get(self.obj))
112 112
113 def dismiss(self):
114 """Dismiss a notify object.
115
116 .. versionadded:: 1.17
117
118 """
119 elm_notify_dismiss(self.obj)
113 120
114 property align: 121 property align:
115 """Set the alignment of the notify object 122 """Set the alignment of the notify object
@@ -157,6 +164,17 @@ cdef class Notify(Object):
157 def callback_block_clicked_del(self, func): 164 def callback_block_clicked_del(self, func):
158 self._callback_del("block,clicked", func) 165 self._callback_del("block,clicked", func)
159 166
167 def callback_dismissed_add(self, func, *args, **kwargs):
168 """When notify is closed as a result of a dismiss.
169
170 .. versionadded:: 1.17
171
172 """
173 self._callback_add("dismissed", func, args, kwargs)
174
175 def callback_dismissed_del(self, func):
176 self._callback_del("dismissed", func)
177
160 178
161 property orient: 179 property orient:
162 def __get__(self): 180 def __get__(self):
diff --git a/efl/elementary/notify_cdef.pxi b/efl/elementary/notify_cdef.pxi
index acc31ec..635a175 100644
--- a/efl/elementary/notify_cdef.pxi
+++ b/efl/elementary/notify_cdef.pxi
@@ -26,4 +26,4 @@ cdef extern from "Elementary.h":
26 Eina_Bool elm_notify_allow_events_get(const Evas_Object *obj) 26 Eina_Bool elm_notify_allow_events_get(const Evas_Object *obj)
27 void elm_notify_align_set(Evas_Object *obj, double horizontal, double vertical) 27 void elm_notify_align_set(Evas_Object *obj, double horizontal, double vertical)
28 void elm_notify_align_get(const Evas_Object *obj, double *horizontal, double *vertical) 28 void elm_notify_align_get(const Evas_Object *obj, double *horizontal, double *vertical)
29 29 void elm_notify_dismiss(const Evas_Object *obj)