summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-04 12:20:20 +0200
committerdavemds <dave@gurumeditation.it>2014-05-04 12:20:20 +0200
commit81289ddfa93ae61ae7aebab488fe7d8ab6377cd7 (patch)
tree7d1ffbbe446fec9804783c07e9d7cef4b0c6d504
parent8b9e5901a37763f5166c11925193289c9e7007b8 (diff)
New item,focused/unfocused signals for the GenList widget
-rw-r--r--efl/elementary/genlist.pyx2
-rw-r--r--efl/elementary/genlist_widget.pxi24
2 files changed, 26 insertions, 0 deletions
diff --git a/efl/elementary/genlist.pyx b/efl/elementary/genlist.pyx
index 9d08466..e72d6a1 100644
--- a/efl/elementary/genlist.pyx
+++ b/efl/elementary/genlist.pyx
@@ -371,6 +371,8 @@ Signals that you can add callbacks for are:
371 was unhighlighted. 371 was unhighlighted.
372- ``focused`` - When the genlist has received focus. (since 1.8) 372- ``focused`` - When the genlist has received focus. (since 1.8)
373- ``unfocused`` - When the genlist has lost focus. (since 1.8) 373- ``unfocused`` - When the genlist has lost focus. (since 1.8)
374- ``item,focused`` - When the genlist item has received focus. (since 1.10)
375- ``item,unfocused`` - When the genlist item has lost focus. (since 1.10)
374 376
375 377
376Enumerations 378Enumerations
diff --git a/efl/elementary/genlist_widget.pxi b/efl/elementary/genlist_widget.pxi
index 1d1758a..68cf2a8 100644
--- a/efl/elementary/genlist_widget.pxi
+++ b/efl/elementary/genlist_widget.pxi
@@ -1002,6 +1002,30 @@ cdef class Genlist(Object):
1002 def callback_unfocused_del(self, func): 1002 def callback_unfocused_del(self, func):
1003 self._callback_del("unfocused", func) 1003 self._callback_del("unfocused", func)
1004 1004
1005 def callback_item_focused_add(self, func, *args, **kwargs):
1006 """When the genlist item has received focus.
1007
1008 .. versionadded:: 1.10
1009
1010 """
1011 self._callback_add_full("item,focused", _cb_object_item_conv, func, *args, **kwargs)
1012
1013 def callback_item_focused_del(self, func):
1014 self._callback_del_full("item,focused", _cb_object_item_conv, func)
1015
1016 def callback_item_unfocused_add(self, func, *args, **kwargs):
1017 """When the genlist item has lost focus.
1018
1019 .. versionadded:: 1.10
1020
1021 """
1022 self._callback_add_full("item,unfocused", _cb_object_item_conv, func, *args, **kwargs)
1023
1024 def callback_item_unfocused_del(self, func):
1025 self._callback_del_full("item,unfocused", _cb_object_item_conv, func)
1026
1027
1028
1005 property scroller_policy: 1029 property scroller_policy:
1006 """ 1030 """
1007 1031