summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-02 20:02:03 +0200
committerdavemds <dave@gurumeditation.it>2014-05-02 20:02:03 +0200
commit10d3b696c4d38616df0c53276390e401a0fc8965 (patch)
tree0cdfc99a661dc3edc56f8e47352cf29be759f33c
parent56b87e0956ead411793de7820c7e1909d3ee0924 (diff)
New item,focused/unfocused signals for the Hoversel widget
-rw-r--r--efl/elementary/hoversel.pyx23
1 files changed, 23 insertions, 0 deletions
diff --git a/efl/elementary/hoversel.pyx b/efl/elementary/hoversel.pyx
index 3265145..0130d6b 100644
--- a/efl/elementary/hoversel.pyx
+++ b/efl/elementary/hoversel.pyx
@@ -41,6 +41,8 @@ This widget emits the following signals, besides the ones sent from
41 is the item 41 is the item
42- ``dismissed`` - the hover is dismissed 42- ``dismissed`` - the hover is dismissed
43- ``expanded`` - the hover is expanded (since 1.9) 43- ``expanded`` - the hover is expanded (since 1.9)
44- ``item,focused`` - the hoversel item has received focus. (since 1.10)
45- ``item,unfocused`` - the hoversel item has lost focus. (since 1.10)
44 46
45Default content parts of the hoversel widget that you can use for are: 47Default content parts of the hoversel widget that you can use for are:
46 48
@@ -395,5 +397,26 @@ cdef class Hoversel(Button):
395 def callback_expanded_del(self, func): 397 def callback_expanded_del(self, func):
396 self._callback_del("expanded", func) 398 self._callback_del("expanded", func)
397 399
400 def callback_item_focused_add(self, func, *args, **kwargs):
401 """When the hoversel item has received focus.
402
403 .. versionadded:: 1.10
404
405 """
406 self._callback_add_full("item,focused", _cb_object_item_conv, func, *args, **kwargs)
407
408 def callback_item_focused_del(self, func):
409 self._callback_del_full("item,focused", _cb_object_item_conv, func)
410
411 def callback_item_unfocused_add(self, func, *args, **kwargs):
412 """When the hoversel item has lost focus.
413
414 .. versionadded:: 1.10
415
416 """
417 self._callback_add_full("item,unfocused", _cb_object_item_conv, func, *args, **kwargs)
418
419 def callback_item_unfocused_del(self, func):
420 self._callback_del_full("item,unfocused", _cb_object_item_conv, func)
398 421
399_object_mapping_register("Elm_Hoversel", Hoversel) 422_object_mapping_register("Elm_Hoversel", Hoversel)