summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-04 12:28:57 +0200
committerdavemds <dave@gurumeditation.it>2014-05-04 12:28:57 +0200
commit197f8d704031e674ef0f2cf9cba00d132b591ceb (patch)
tree34391eb48784a63219e3355adf35d952aa750968
parent81289ddfa93ae61ae7aebab488fe7d8ab6377cd7 (diff)
New item,focused/unfocused signals for the GenGrid widget
-rw-r--r--efl/elementary/gengrid.pyx3
-rw-r--r--efl/elementary/gengrid_widget.pxi21
2 files changed, 23 insertions, 1 deletions
diff --git a/efl/elementary/gengrid.pyx b/efl/elementary/gengrid.pyx
index 74d91a3..5481e19 100644
--- a/efl/elementary/gengrid.pyx
+++ b/efl/elementary/gengrid.pyx
@@ -248,7 +248,8 @@ Smart events that you can add callbacks for are:
248 be translated. 248 be translated.
249- ``focused`` - When the gengrid has received focus. (since 1.8) 249- ``focused`` - When the gengrid has received focus. (since 1.8)
250- ``unfocused`` - When the gengrid has lost focus. (since 1.8) 250- ``unfocused`` - When the gengrid has lost focus. (since 1.8)
251 251- ``item,focused`` - When the gengrid item has received focus. (since 1.10)
252- ``item,unfocused`` - When the gengrid item has lost focus. (since 1.10)
252 253
253Enumerations 254Enumerations
254------------ 255------------
diff --git a/efl/elementary/gengrid_widget.pxi b/efl/elementary/gengrid_widget.pxi
index 0eb4599..3dc333a 100644
--- a/efl/elementary/gengrid_widget.pxi
+++ b/efl/elementary/gengrid_widget.pxi
@@ -827,6 +827,27 @@ cdef class Gengrid(Object):
827 def callback_unfocused_del(self, func): 827 def callback_unfocused_del(self, func):
828 self._callback_del("unfocused", func) 828 self._callback_del("unfocused", func)
829 829
830 def callback_item_focused_add(self, func, *args, **kwargs):
831 """When the gengrid item has received focus.
832
833 .. versionadded:: 1.10
834
835 """
836 self._callback_add_full("item,focused", _cb_object_item_conv, func, *args, **kwargs)
837
838 def callback_item_focused_del(self, func):
839 self._callback_del_full("item,focused", _cb_object_item_conv, func)
840
841 def callback_item_unfocused_add(self, func, *args, **kwargs):
842 """When the gengrid item has lost focus.
843
844 .. versionadded:: 1.10
845
846 """
847 self._callback_add_full("item,unfocused", _cb_object_item_conv, func, *args, **kwargs)
848
849 def callback_item_unfocused_del(self, func):
850 self._callback_del_full("item,unfocused", _cb_object_item_conv, func)
830 851
831 property scroller_policy: 852 property scroller_policy:
832 """ 853 """