summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-10 13:09:19 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-10 13:09:19 +0100
commit458121f6be1c6b9b911c8f65fdc728ecc623e71d (patch)
tree5561b7c28ecfa6426aeebf5574605730ff882f8d
parentf3e6315413e84fedc08cee4478c5784cd47cd163 (diff)
Moved (un)focused and language,changed events down to Object.
There is no need to replicate this events in every widget, they belong to Object
-rw-r--r--doc/elementary/bubble.rst2
-rw-r--r--doc/elementary/button.rst2
-rw-r--r--doc/elementary/calendar.rst2
-rw-r--r--doc/elementary/check.rst2
-rw-r--r--doc/elementary/clock.rst2
-rw-r--r--doc/elementary/colorselector.rst2
-rw-r--r--doc/elementary/ctxpopup.rst4
-rw-r--r--doc/elementary/datetime.rst3
-rw-r--r--doc/elementary/dayselector.rst1
-rw-r--r--doc/elementary/diskselector.rst2
-rw-r--r--doc/elementary/entry.rst3
-rw-r--r--doc/elementary/fileselector_button.rst1
-rw-r--r--doc/elementary/fileselector_entry.rst3
-rw-r--r--doc/elementary/flipselector.rst2
-rw-r--r--doc/elementary/gengrid.rst5
-rw-r--r--doc/elementary/genlist.rst2
-rw-r--r--doc/elementary/hover.rst2
-rw-r--r--doc/elementary/index.rst3
-rw-r--r--doc/elementary/label.rst1
-rw-r--r--doc/elementary/layout.rst1
-rw-r--r--doc/elementary/list.rst3
-rw-r--r--doc/elementary/map.rst3
-rw-r--r--doc/elementary/multibuttonentry.rst3
-rw-r--r--doc/elementary/naviframe.rst2
-rw-r--r--doc/elementary/object.rst9
-rw-r--r--doc/elementary/panel.rst6
-rw-r--r--doc/elementary/photocam.rst2
-rw-r--r--doc/elementary/popup.rst3
-rw-r--r--doc/elementary/progressbar.rst3
-rw-r--r--doc/elementary/radio.rst2
-rw-r--r--doc/elementary/scroller.rst2
-rw-r--r--doc/elementary/slider.rst2
-rw-r--r--doc/elementary/slideshow.rst2
-rw-r--r--doc/elementary/spinner.rst3
-rw-r--r--doc/elementary/toolbar.rst3
-rw-r--r--doc/elementary/video.rst6
-rw-r--r--doc/elementary/web.rst2
-rw-r--r--doc/elementary/window.rst2
-rw-r--r--efl/elementary/bubble.pxi21
-rw-r--r--efl/elementary/button.pxi21
-rw-r--r--efl/elementary/calendar.pxi19
-rw-r--r--efl/elementary/check.pxi19
-rw-r--r--efl/elementary/clock.pxi19
-rw-r--r--efl/elementary/colorselector.pxi19
-rw-r--r--efl/elementary/ctxpopup.pxi26
-rw-r--r--efl/elementary/datetime.pxi31
-rw-r--r--efl/elementary/dayselector.pxi7
-rw-r--r--efl/elementary/diskselector.pxi20
-rw-r--r--efl/elementary/entry.pxi21
-rw-r--r--efl/elementary/fileselector_button.pxi10
-rw-r--r--efl/elementary/fileselector_entry.pxi24
-rw-r--r--efl/elementary/flipselector.pxi19
-rw-r--r--efl/elementary/gengrid_widget.pxi26
-rw-r--r--efl/elementary/genlist_widget.pxi26
-rw-r--r--efl/elementary/glview.pyx27
-rw-r--r--efl/elementary/hover.pxi20
-rw-r--r--efl/elementary/index.pxi26
-rw-r--r--efl/elementary/label.pxi7
-rw-r--r--efl/elementary/layout.pxi6
-rw-r--r--efl/elementary/list.pxi34
-rw-r--r--efl/elementary/map.pxi28
-rw-r--r--efl/elementary/multibuttonentry.pxi12
-rw-r--r--efl/elementary/naviframe.pxi19
-rw-r--r--efl/elementary/object.pxi48
-rw-r--r--efl/elementary/panel.pxi19
-rw-r--r--efl/elementary/photocam.pxi19
-rw-r--r--efl/elementary/popup.pxi30
-rw-r--r--efl/elementary/progressbar.pxi19
-rw-r--r--efl/elementary/radio.pxi19
-rw-r--r--efl/elementary/scroller.pxi21
-rw-r--r--efl/elementary/slider.pxi19
-rw-r--r--efl/elementary/slideshow.pxi19
-rw-r--r--efl/elementary/spinner.pxi26
-rw-r--r--efl/elementary/toolbar.pxi27
-rw-r--r--efl/elementary/video.pxi38
-rw-r--r--efl/elementary/web.pxi21
-rw-r--r--efl/elementary/window.pxi20
-rw-r--r--examples/elementary/test_focus.py25
78 files changed, 79 insertions, 901 deletions
diff --git a/doc/elementary/bubble.rst b/doc/elementary/bubble.rst
index d66826a..dcc1650 100644
--- a/doc/elementary/bubble.rst
+++ b/doc/elementary/bubble.rst
@@ -50,8 +50,6 @@ Emitted signals
50=============== 50===============
51 51
52- ``clicked`` - This is called when a user has clicked the bubble. 52- ``clicked`` - This is called when a user has clicked the bubble.
53- ``focused`` - When the bubble has received focus. (since 1.8)
54- ``unfocused`` - When the bubble has lost focus. (since 1.8)
55 53
56 54
57Enumerations 55Enumerations
diff --git a/doc/elementary/button.rst b/doc/elementary/button.rst
index becdc6b..29515d4 100644
--- a/doc/elementary/button.rst
+++ b/doc/elementary/button.rst
@@ -50,8 +50,6 @@ Emitted signals
50- ``repeated``: the user pressed the button without releasing it. 50- ``repeated``: the user pressed the button without releasing it.
51- ``pressed``: button was pressed. 51- ``pressed``: button was pressed.
52- ``unpressed``: button was released after being pressed. 52- ``unpressed``: button was released after being pressed.
53- ``focused`` : When the button has received focus. (since 1.8)
54- ``unfocused`` : When the button has lost focus. (since 1.8)
55 53
56 54
57Inheritance diagram 55Inheritance diagram
diff --git a/doc/elementary/calendar.rst b/doc/elementary/calendar.rst
index 5278f3d..384bcd9 100644
--- a/doc/elementary/calendar.rst
+++ b/doc/elementary/calendar.rst
@@ -28,8 +28,6 @@ Emitted signals
28- ``changed`` - emitted when the date in the calendar is changed. 28- ``changed`` - emitted when the date in the calendar is changed.
29- ``display,changed`` - emitted when the current month displayed in the 29- ``display,changed`` - emitted when the current month displayed in the
30 calendar is changed. 30 calendar is changed.
31- ``focused`` - When the calendar has received focus. (since 1.8)
32- ``unfocused`` - When the calendar has lost focus. (since 1.8)
33 31
34 32
35Enumerations 33Enumerations
diff --git a/doc/elementary/check.rst b/doc/elementary/check.rst
index 62a714a..e0fb3fc 100644
--- a/doc/elementary/check.rst
+++ b/doc/elementary/check.rst
@@ -21,8 +21,6 @@ Emitted signals
21 21
22- ``changed`` - This is called whenever the user changes the state of 22- ``changed`` - This is called whenever the user changes the state of
23 the check objects. 23 the check objects.
24- ``focused`` - When the check has received focus. (since 1.8)
25- ``unfocused`` - When the check has lost focus. (since 1.8)
26 24
27 25
28Layout content parts 26Layout content parts
diff --git a/doc/elementary/clock.rst b/doc/elementary/clock.rst
index d0a896a..f07c5cc 100644
--- a/doc/elementary/clock.rst
+++ b/doc/elementary/clock.rst
@@ -39,8 +39,6 @@ Emitted signals
39=============== 39===============
40 40
41- ``changed`` - the clock's user changed the time 41- ``changed`` - the clock's user changed the time
42- ``focused`` - When the clock has received focus. (since 1.8)
43- ``unfocused`` - When the clock has lost focus. (since 1.8)
44 42
45 43
46Enumerations 44Enumerations
diff --git a/doc/elementary/colorselector.rst b/doc/elementary/colorselector.rst
index b79c393..1084c82 100644
--- a/doc/elementary/colorselector.rst
+++ b/doc/elementary/colorselector.rst
@@ -28,8 +28,6 @@ Emitted signals
28- ``"color,item,longpressed"`` - When user long presses on color item. 28- ``"color,item,longpressed"`` - When user long presses on color item.
29 The event_info parameter of the callback will be the selected 29 The event_info parameter of the callback will be the selected
30 color item. 30 color item.
31- ``focused`` - When the colorselector has received focus. (since 1.8)
32- ``unfocused`` - When the colorselector has lost focus. (since 1.8)
33 31
34 32
35Enumerations 33Enumerations
diff --git a/doc/elementary/ctxpopup.rst b/doc/elementary/ctxpopup.rst
index a9dc880..e63e634 100644
--- a/doc/elementary/ctxpopup.rst
+++ b/doc/elementary/ctxpopup.rst
@@ -27,10 +27,6 @@ Emitted signals
27 or 2. its parent area is changed or 3. the language is changed and also when 27 or 2. its parent area is changed or 3. the language is changed and also when
28 4. the parent object is resized due to the window rotation. Then ctxpopup is 28 4. the parent object is resized due to the window rotation. Then ctxpopup is
29 dismissed. 29 dismissed.
30- ``language,changed`` - This is called when the program's language is
31 changed.
32- ``focused`` - When the ctxpopup has received focus. (since 1.8)
33- ``unfocused`` - When the ctxpopup has lost focus. (since 1.8)
34 30
35Layout content parts 31Layout content parts
36==================== 32====================
diff --git a/doc/elementary/datetime.rst b/doc/elementary/datetime.rst
index c271396..19d6fd9 100644
--- a/doc/elementary/datetime.rst
+++ b/doc/elementary/datetime.rst
@@ -172,9 +172,6 @@ Emitted signals
172=============== 172===============
173 173
174- ``changed`` - whenever Datetime field value is changed, this signal is sent. 174- ``changed`` - whenever Datetime field value is changed, this signal is sent.
175- ``language,changed`` - whenever system locale changes, this signal is sent.
176- ``focused`` - When the datetime has received focus. (since 1.8)
177- ``unfocused`` - When the datetime has lost focus. (since 1.8)
178 175
179 176
180Enumerations 177Enumerations
diff --git a/doc/elementary/dayselector.rst b/doc/elementary/dayselector.rst
index 7eb0ac8..35889ea 100644
--- a/doc/elementary/dayselector.rst
+++ b/doc/elementary/dayselector.rst
@@ -50,7 +50,6 @@ Emitted signals
50=============== 50===============
51 51
52- ``dayselector,changed`` - when the user changes the state of a day. 52- ``dayselector,changed`` - when the user changes the state of a day.
53- ``language,changed`` - the program's language changed
54 53
55 54
56Enumerations 55Enumerations
diff --git a/doc/elementary/diskselector.rst b/doc/elementary/diskselector.rst
index 76ec557..9c78058 100644
--- a/doc/elementary/diskselector.rst
+++ b/doc/elementary/diskselector.rst
@@ -26,8 +26,6 @@ Emitted signals
26- ``scroll,anim,stop`` - scrolling animation has stopped 26- ``scroll,anim,stop`` - scrolling animation has stopped
27- ``scroll,drag,start`` - dragging the diskselector has started 27- ``scroll,drag,start`` - dragging the diskselector has started
28- ``scroll,drag,stop`` - dragging the diskselector has stopped 28- ``scroll,drag,stop`` - dragging the diskselector has stopped
29- ``focused`` - When the diskselector has received focus. (since 1.8)
30- ``unfocused`` - When the diskselector has lost focus. (since 1.8)
31 29
32.. note:: The ``scroll,anim,*`` and ``scroll,drag,*`` signals are only emitted 30.. note:: The ``scroll,anim,*`` and ``scroll,drag,*`` signals are only emitted
33 by user intervention. 31 by user intervention.
diff --git a/doc/elementary/entry.rst b/doc/elementary/entry.rst
index f25708f..d6bf40a 100644
--- a/doc/elementary/entry.rst
+++ b/doc/elementary/entry.rst
@@ -223,8 +223,6 @@ Emitted signals
223- ``clicked``: The entry has been clicked (mouse press and release). 223- ``clicked``: The entry has been clicked (mouse press and release).
224- ``clicked,double``: The entry has been double clicked. 224- ``clicked,double``: The entry has been double clicked.
225- ``clicked,triple``: The entry has been triple clicked. 225- ``clicked,triple``: The entry has been triple clicked.
226- ``focused``: The entry has received focus.
227- ``unfocused``: The entry has lost focus.
228- ``selection,paste``: A paste of the clipboard contents was requested. 226- ``selection,paste``: A paste of the clipboard contents was requested.
229- ``selection,copy``: A copy of the selected text into the clipboard was 227- ``selection,copy``: A copy of the selected text into the clipboard was
230 requested. 228 requested.
@@ -246,7 +244,6 @@ Emitted signals
246- ``anchor,down``: Mouse button has been pressed on an anchor. The event_info 244- ``anchor,down``: Mouse button has been pressed on an anchor. The event_info
247 parameter for the callback will be an :py:class:`EntryAnchorInfo`. 245 parameter for the callback will be an :py:class:`EntryAnchorInfo`.
248- ``preedit,changed``: The preedit string has changed. 246- ``preedit,changed``: The preedit string has changed.
249- ``language,changed``: Program language changed.
250- ``text,set,done``: Whole text has been set to the entry. 247- ``text,set,done``: Whole text has been set to the entry.
251- ``rejected``: .Called when some of inputs are rejected by the filter. (since 1.9) 248- ``rejected``: .Called when some of inputs are rejected by the filter. (since 1.9)
252 249
diff --git a/doc/elementary/fileselector_button.rst b/doc/elementary/fileselector_button.rst
index fd06331..b86b3d5 100644
--- a/doc/elementary/fileselector_button.rst
+++ b/doc/elementary/fileselector_button.rst
@@ -35,7 +35,6 @@ Emitted signals
35 35
36- ``file,chosen`` - the user has selected a path which comes as the 36- ``file,chosen`` - the user has selected a path which comes as the
37 ``event_info`` data 37 ``event_info`` data
38- ``language,changed`` - the program's language changed
39 38
40 39
41Layout text parts 40Layout text parts
diff --git a/doc/elementary/fileselector_entry.rst b/doc/elementary/fileselector_entry.rst
index b916ab4..9c33cc6 100644
--- a/doc/elementary/fileselector_entry.rst
+++ b/doc/elementary/fileselector_entry.rst
@@ -39,8 +39,6 @@ Emitted signals
39 couple seconds 39 couple seconds
40- ``clicked`` - The entry has been clicked 40- ``clicked`` - The entry has been clicked
41- ``clicked,double`` - The entry has been double clicked 41- ``clicked,double`` - The entry has been double clicked
42- ``focused`` - The entry has received focus
43- ``unfocused`` - The entry has lost focus
44- ``selection,paste`` - A paste action has occurred on the 42- ``selection,paste`` - A paste action has occurred on the
45 entry 43 entry
46- ``selection,copy`` - A copy action has occurred on the entry 44- ``selection,copy`` - A copy action has occurred on the entry
@@ -50,7 +48,6 @@ Emitted signals
50- ``file,chosen`` - The user has selected a path via the file 48- ``file,chosen`` - The user has selected a path via the file
51 selector entry's internal file selector, whose string 49 selector entry's internal file selector, whose string
52 comes as the ``event_info`` data. 50 comes as the ``event_info`` data.
53- ``language,changed`` - the program's language changed
54 51
55 52
56Layout text parts 53Layout text parts
diff --git a/doc/elementary/flipselector.rst b/doc/elementary/flipselector.rst
index aa4e4af..cb9b583 100644
--- a/doc/elementary/flipselector.rst
+++ b/doc/elementary/flipselector.rst
@@ -29,8 +29,6 @@ Emitted signals
29 from the first item in its list to the last 29 from the first item in its list to the last
30- ``underflowed`` - when the widget's current selection is changed 30- ``underflowed`` - when the widget's current selection is changed
31 from the last item in its list to the first 31 from the last item in its list to the first
32- ``focused`` - When the flipselector has received focus. (since 1.8)
33- ``unfocused`` - When the flipselector has lost focus. (since 1.8)
34 32
35 33
36Layout text parts 34Layout text parts
diff --git a/doc/elementary/gengrid.rst b/doc/elementary/gengrid.rst
index 294fb9b..9527361 100644
--- a/doc/elementary/gengrid.rst
+++ b/doc/elementary/gengrid.rst
@@ -233,11 +233,6 @@ Emitted signals
233 when the user releases an item or keyboard selection is moved so the item 233 when the user releases an item or keyboard selection is moved so the item
234 is physically unhighlighted. The ``event_info`` parameter is the item that 234 is physically unhighlighted. The ``event_info`` parameter is the item that
235 was unhighlighted. 235 was unhighlighted.
236- ``language,changed`` - This is called when the program's language is
237 changed. Call :meth:`~Gengrid.realized_items_update` if items text should
238 be translated.
239- ``focused`` - When the gengrid has received focus. (since 1.8)
240- ``unfocused`` - When the gengrid has lost focus. (since 1.8)
241- ``item,focused`` - When the gengrid item has received focus. (since 1.10) 236- ``item,focused`` - When the gengrid item has received focus. (since 1.10)
242- ``item,unfocused`` - When the gengrid item has lost focus. (since 1.10) 237- ``item,unfocused`` - When the gengrid item has lost focus. (since 1.10)
243- ``item,reorder,anim,start`` - This is called when a gengrid item movement 238- ``item,reorder,anim,start`` - This is called when a gengrid item movement
diff --git a/doc/elementary/genlist.rst b/doc/elementary/genlist.rst
index 5f28fe4..e6cb8d0 100644
--- a/doc/elementary/genlist.rst
+++ b/doc/elementary/genlist.rst
@@ -344,8 +344,6 @@ Emitted signals
344 when the user releases an item or keyboard selection is moved so the item 344 when the user releases an item or keyboard selection is moved so the item
345 is physically unhighlighted. The ``event_info`` parameter is the item that 345 is physically unhighlighted. The ``event_info`` parameter is the item that
346 was unhighlighted. 346 was unhighlighted.
347- ``focused`` - When the genlist has received focus. (since 1.8)
348- ``unfocused`` - When the genlist has lost focus. (since 1.8)
349- ``item,focused`` - When the genlist item has received focus. (since 1.10) 347- ``item,focused`` - When the genlist item has received focus. (since 1.10)
350- ``item,unfocused`` - When the genlist item has lost focus. (since 1.10) 348- ``item,unfocused`` - When the genlist item has lost focus. (since 1.10)
351- ``changed`` - Genlist is now changed their items and properties and all 349- ``changed`` - Genlist is now changed their items and properties and all
diff --git a/doc/elementary/hover.rst b/doc/elementary/hover.rst
index 136fdce..8cfae13 100644
--- a/doc/elementary/hover.rst
+++ b/doc/elementary/hover.rst
@@ -39,8 +39,6 @@ Emitted signals
39 (since 1.8) 39 (since 1.8)
40- ``smart,changed`` - a content object placed under the "smart" 40- ``smart,changed`` - a content object placed under the "smart"
41 policy was replaced to a new slot direction. 41 policy was replaced to a new slot direction.
42- ``focused`` - When the hover has received focus. (since 1.8)
43- ``unfocused`` - When the hover has lost focus. (since 1.8)
44 42
45 43
46Layout content parts 44Layout content parts
diff --git a/doc/elementary/index.rst b/doc/elementary/index.rst
index 79dbf0d..6761b46 100644
--- a/doc/elementary/index.rst
+++ b/doc/elementary/index.rst
@@ -42,9 +42,6 @@ Emitted signals
42 level to the second level 42 level to the second level
43- ``level,down`` - when the user moves a finger from the second 43- ``level,down`` - when the user moves a finger from the second
44 level to the first level 44 level to the first level
45- ``language,changed`` - the program's language changed
46- ``focused`` - When the index has received focus. (since 1.8)
47- ``unfocused`` - When the index has lost focus. (since 1.8)
48 45
49The ``delay,changed`` event has a delay on change before the event is actually 46The ``delay,changed`` event has a delay on change before the event is actually
50reported and moreover just the last event happening on those time frames will 47reported and moreover just the last event happening on those time frames will
diff --git a/doc/elementary/label.rst b/doc/elementary/label.rst
index dfd17d3..13f0fe7 100644
--- a/doc/elementary/label.rst
+++ b/doc/elementary/label.rst
@@ -43,7 +43,6 @@ they like.
43Emitted signals 43Emitted signals
44=============== 44===============
45 45
46- ``language,changed`` - The program's language changed.
47- ``slide,end`` - The slide is end. 46- ``slide,end`` - The slide is end.
48 47
49 48
diff --git a/doc/elementary/layout.rst b/doc/elementary/layout.rst
index 6acf0d6..f227593 100644
--- a/doc/elementary/layout.rst
+++ b/doc/elementary/layout.rst
@@ -151,7 +151,6 @@ Emitted signals
151=============== 151===============
152 152
153- ``theme,changed`` - The theme was changed. 153- ``theme,changed`` - The theme was changed.
154- ``language,changed`` - the program's language changed
155 154
156 155
157Inheritance diagram 156Inheritance diagram
diff --git a/doc/elementary/list.rst b/doc/elementary/list.rst
index 01b29f1..cada62e 100644
--- a/doc/elementary/list.rst
+++ b/doc/elementary/list.rst
@@ -38,9 +38,6 @@ Emitted signals
38- ``unhighlighted`` - an item in the list is unhighlighted. This is called 38- ``unhighlighted`` - an item in the list is unhighlighted. This is called
39 when the user releases an item or keyboard selection is moved so the item 39 when the user releases an item or keyboard selection is moved so the item
40 is physically unhighlighted. 40 is physically unhighlighted.
41- ``language,changed`` - the program's language changed
42- ``focused`` - When the list has received focus. (since 1.8)
43- ``unfocused`` - When the list has lost focus. (since 1.8)
44- ``item,focused`` - When the list item has received focus. (since 1.10) 41- ``item,focused`` - When the list item has received focus. (since 1.10)
45- ``item,unfocused`` - When the list item has lost focus. (since 1.10) 42- ``item,unfocused`` - When the list item has lost focus. (since 1.10)
46 43
diff --git a/doc/elementary/map.rst b/doc/elementary/map.rst
index 263d65c..53cb107 100644
--- a/doc/elementary/map.rst
+++ b/doc/elementary/map.rst
@@ -52,9 +52,6 @@ Emitted signals
52- ``name,loaded,fail`` - Name request fails. 52- ``name,loaded,fail`` - Name request fails.
53- ``overlay,clicked`` - A overlay is clicked. 53- ``overlay,clicked`` - A overlay is clicked.
54- ``loaded`` - when a map is finally loaded. 54- ``loaded`` - when a map is finally loaded.
55- ``language,changed`` - the program's language changed
56- ``focused`` - When the map has received focus. (since 1.8)
57- ``unfocused`` - When the map has lost focus. (since 1.8)
58 55
59 56
60Scrollable Interface 57Scrollable Interface
diff --git a/doc/elementary/multibuttonentry.rst b/doc/elementary/multibuttonentry.rst
index 30b4b88..d60b10c 100644
--- a/doc/elementary/multibuttonentry.rst
+++ b/doc/elementary/multibuttonentry.rst
@@ -36,13 +36,12 @@ Emitted signals
36 interaction. Both "item,selected" and "item,clicked" are needed. 36 interaction. Both "item,selected" and "item,clicked" are needed.
37 event_info contains the item. 37 event_info contains the item.
38- ``clicked`` - when multi-button entry is clicked. 38- ``clicked`` - when multi-button entry is clicked.
39- ``focused`` - when multi-button entry is focused.
40- ``unfocused`` - when multi-button entry is unfocused.
41- ``expanded`` - when multi-button entry is expanded. 39- ``expanded`` - when multi-button entry is expanded.
42- ``contracted`` - when multi-button entry is contracted. 40- ``contracted`` - when multi-button entry is contracted.
43- ``expand,state,changed`` - when shrink mode state of 41- ``expand,state,changed`` - when shrink mode state of
44 multi-button entry is changed. 42 multi-button entry is changed.
45 43
44
46Layout text parts 45Layout text parts
47================= 46=================
48 47
diff --git a/doc/elementary/naviframe.rst b/doc/elementary/naviframe.rst
index c1dfc3f..8292caa 100644
--- a/doc/elementary/naviframe.rst
+++ b/doc/elementary/naviframe.rst
@@ -65,8 +65,6 @@ Emitted signals
65- ``transition,finished`` - When the transition is finished in changing the item 65- ``transition,finished`` - When the transition is finished in changing the item
66- ``title,transition,finished`` - When the title area's transition is finished 66- ``title,transition,finished`` - When the title area's transition is finished
67- ``title,clicked`` - User clicked title area 67- ``title,clicked`` - User clicked title area
68- ``focused`` - When the naviframe has received focus. (since 1.8)
69- ``unfocused`` - When the naviframe has lost focus. (since 1.8)
70 68
71All the parts, for content and text, described here will also be 69All the parts, for content and text, described here will also be
72reachable by naviframe **items** direct calls: 70reachable by naviframe **items** direct calls:
diff --git a/doc/elementary/object.rst b/doc/elementary/object.rst
index c784354..df0bd3c 100644
--- a/doc/elementary/object.rst
+++ b/doc/elementary/object.rst
@@ -47,6 +47,15 @@ More information is on
47 - X11R6 Inter-Client Communication Conventions Manual, section 2 47 - X11R6 Inter-Client Communication Conventions Manual, section 2
48 48
49 49
50Emitted smart events
51====================
52
53- ``moved`` - When the object change position. (since 1.17)
54- ``focus`` - When the object has received focus. (since 1.8)
55- ``unfocus`` - When the object has lost focus. (since 1.8)
56- ``language,changed`` - Whenever system locale changes.
57
58
50Enumerations 59Enumerations
51============ 60============
52 61
diff --git a/doc/elementary/panel.rst b/doc/elementary/panel.rst
index 8c2be7a..3c2da1e 100644
--- a/doc/elementary/panel.rst
+++ b/doc/elementary/panel.rst
@@ -14,12 +14,6 @@ A panel is a type of animated container that contains subobjects.
14It can be expanded or contracted by clicking the button on it's edge. 14It can be expanded or contracted by clicking the button on it's edge.
15 15
16 16
17Emitted signals
18===============
19
20- ``focused`` - When the panel has received focus. (since 1.8)
21- ``unfocused`` - When the panel has lost focus. (since 1.8)
22
23 17
24Layout content parts 18Layout content parts
25==================== 19====================
diff --git a/doc/elementary/photocam.rst b/doc/elementary/photocam.rst
index 37d6e2e..b024155 100644
--- a/doc/elementary/photocam.rst
+++ b/doc/elementary/photocam.rst
@@ -41,8 +41,6 @@ Emitted signals
41- ``download,progress`` - url download in progress 41- ``download,progress`` - url download in progress
42- ``download,end`` - remote url download has finished 42- ``download,end`` - remote url download has finished
43- ``download,error`` - remote url download has finished with errors 43- ``download,error`` - remote url download has finished with errors
44- ``focused`` - When the photocam has received focus. (since 1.8)
45- ``unfocused`` - When the photocam has lost focus. (since 1.8)
46 44
47 45
48Scrollable Interface 46Scrollable Interface
diff --git a/doc/elementary/popup.rst b/doc/elementary/popup.rst
index e821740..2747c63 100644
--- a/doc/elementary/popup.rst
+++ b/doc/elementary/popup.rst
@@ -69,9 +69,6 @@ Emitted signals
69 69
70- ``timeout`` - when ever popup is closed as a result of timeout. 70- ``timeout`` - when ever popup is closed as a result of timeout.
71- ``block,clicked`` - when ever user taps on Blocked Event area. 71- ``block,clicked`` - when ever user taps on Blocked Event area.
72- ``focused`` - When the popup has received focus. (since 1.8)
73- ``unfocused`` - When the popup has lost focus. (since 1.8)
74- ``language,changed`` - the program's language changed (since 1.8)
75- ``item,focused`` - the popup item has received focus. (since 1.10) 72- ``item,focused`` - the popup item has received focus. (since 1.10)
76- ``item,unfocused`` - the popup item has lost focus. (since 1.10) 73- ``item,unfocused`` - the popup item has lost focus. (since 1.10)
77 74
diff --git a/doc/elementary/progressbar.rst b/doc/elementary/progressbar.rst
index dff5271..16d50cd 100644
--- a/doc/elementary/progressbar.rst
+++ b/doc/elementary/progressbar.rst
@@ -34,8 +34,7 @@ This widget emits the following signals, besides the ones sent from
34:py:class:`~efl.elementary.layout_class.LayoutClass`: 34:py:class:`~efl.elementary.layout_class.LayoutClass`:
35 35
36- ``changed`` - when the value is changed 36- ``changed`` - when the value is changed
37- ``focused`` - When the progressbar has received focus. (since 1.8) 37
38- ``unfocused`` - When the progressbar has lost focus. (since 1.8)
39 38
40This widget has the following styles: 39This widget has the following styles:
41 40
diff --git a/doc/elementary/radio.rst b/doc/elementary/radio.rst
index 853a58e..aae8bf2 100644
--- a/doc/elementary/radio.rst
+++ b/doc/elementary/radio.rst
@@ -37,8 +37,6 @@ Emitted signals
37 37
38- ``changed`` - This is called whenever the user changes the state of one of 38- ``changed`` - This is called whenever the user changes the state of one of
39 the radio objects within the group of radio objects that work together. 39 the radio objects within the group of radio objects that work together.
40- ``focused`` - When the radio has received focus. (since 1.8)
41- ``unfocused`` - When the radio has lost focus. (since 1.8)
42 40
43 41
44Layout text parts 42Layout text parts
diff --git a/doc/elementary/scroller.rst b/doc/elementary/scroller.rst
index b7fdafb..43e0755 100644
--- a/doc/elementary/scroller.rst
+++ b/doc/elementary/scroller.rst
@@ -50,8 +50,6 @@ Emitted signals
50- ``hbar,press`` - the horizontal scroll bar has been pressed 50- ``hbar,press`` - the horizontal scroll bar has been pressed
51- ``hbar,unpress`` - the horizontal scroll bar has been unpressed 51- ``hbar,unpress`` - the horizontal scroll bar has been unpressed
52- ``scroll,page,changed`` - the visible page has changed 52- ``scroll,page,changed`` - the visible page has changed
53- ``focused`` - When the scroller has received focus. (since 1.8)
54- ``unfocused`` - When the scroller has lost focus. (since 1.8)
55 53
56.. note:: The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by 54.. note:: The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
57 user intervention. 55 user intervention.
diff --git a/doc/elementary/slider.rst b/doc/elementary/slider.rst
index 678f21c..01e4000 100644
--- a/doc/elementary/slider.rst
+++ b/doc/elementary/slider.rst
@@ -43,8 +43,6 @@ Emitted signals
43 the user. This will be called only when the user stops dragging 43 the user. This will be called only when the user stops dragging
44 for a very short period or when they release their finger/mouse, 44 for a very short period or when they release their finger/mouse,
45 so it avoids possibly expensive reactions to the value change. 45 so it avoids possibly expensive reactions to the value change.
46- ``focused`` - When the slider has received focus. (since 1.8)
47- ``unfocused`` - When the slider has lost focus. (since 1.8)
48 46
49 47
50Layout content parts 48Layout content parts
diff --git a/doc/elementary/slideshow.rst b/doc/elementary/slideshow.rst
index 39b9a02..fa135a8 100644
--- a/doc/elementary/slideshow.rst
+++ b/doc/elementary/slideshow.rst
@@ -60,8 +60,6 @@ Emitted signals
60 event_info parameter in callback contains the current visible item 60 event_info parameter in callback contains the current visible item
61- ``transition,end`` - when a slide transition ends. event_info 61- ``transition,end`` - when a slide transition ends. event_info
62 parameter in callback contains the current visible item 62 parameter in callback contains the current visible item
63- ``focused`` - When the slideshow has received focus. (since 1.8)
64- ``unfocused`` - When the slideshow has lost focus. (since 1.8)
65 63
66 64
67Inheritance diagram 65Inheritance diagram
diff --git a/doc/elementary/spinner.rst b/doc/elementary/spinner.rst
index b805974..547260c 100644
--- a/doc/elementary/spinner.rst
+++ b/doc/elementary/spinner.rst
@@ -31,9 +31,6 @@ Emitted signals
31 the user. This will be called only when the user stops dragging 31 the user. This will be called only when the user stops dragging
32 for a very short period or when they release their finger/mouse, 32 for a very short period or when they release their finger/mouse,
33 so it avoids possibly expensive reactions to the value change. 33 so it avoids possibly expensive reactions to the value change.
34- ``language,changed`` - the program's language changed
35- ``focused`` - When the spinner has received focus. (since 1.8)
36- ``unfocused`` - When the spinner has lost focus. (since 1.8)
37 34
38 35
39Available styles 36Available styles
diff --git a/doc/elementary/toolbar.rst b/doc/elementary/toolbar.rst
index 1dfcd0d..a025273 100644
--- a/doc/elementary/toolbar.rst
+++ b/doc/elementary/toolbar.rst
@@ -23,9 +23,6 @@ Emitted signals
23 23
24- ``clicked`` - when the user clicks on a toolbar item and becomes selected. 24- ``clicked`` - when the user clicks on a toolbar item and becomes selected.
25- ``longpressed`` - when the toolbar is pressed for a certain amount of time. 25- ``longpressed`` - when the toolbar is pressed for a certain amount of time.
26- ``language,changed`` - when the program language changes.
27- ``focused`` - When the toolbar has received focus. (since 1.8)
28- ``unfocused`` - When the toolbar has lost focus. (since 1.8)
29- ``item,focused`` - When the toolbar item has received focus. (since 1.10) 26- ``item,focused`` - When the toolbar item has received focus. (since 1.10)
30- ``item,unfocused`` - When the toolbar item has lost focus. (since 1.10) 27- ``item,unfocused`` - When the toolbar item has lost focus. (since 1.10)
31 28
diff --git a/doc/elementary/video.rst b/doc/elementary/video.rst
index bfaa31f..3b07a0a 100644
--- a/doc/elementary/video.rst
+++ b/doc/elementary/video.rst
@@ -13,12 +13,6 @@ It embeds the video inside an Edje object, so you can do some
13animation depending on the video state change. It also implements a 13animation depending on the video state change. It also implements a
14resource management policy to remove this burden from the application. 14resource management policy to remove this burden from the application.
15 15
16These widgets emit the following signals, besides the ones sent from
17:py:class:`~efl.elementary.layout_class.LayoutClass`:
18
19- ``focused`` - When the widget has received focus. (since 1.8)
20- ``unfocused`` - When the widget has lost focus. (since 1.8)
21
22 16
23Inheritance diagram 17Inheritance diagram
24=================== 18===================
diff --git a/doc/elementary/web.rst b/doc/elementary/web.rst
index b909541..4a84647 100644
--- a/doc/elementary/web.rst
+++ b/doc/elementary/web.rst
@@ -76,8 +76,6 @@ Emitted signals
76- ``windows,close,request``: A JavaScript request to close the current 76- ``windows,close,request``: A JavaScript request to close the current
77 window was requested 77 window was requested
78- ``zoom,animated,end``: Animated zoom finished 78- ``zoom,animated,end``: Animated zoom finished
79- ``focused`` : When the web has received focus. (since 1.8)
80- ``unfocused`` : When the web has lost focus. (since 1.8)
81 79
82 80
83Enumerations 81Enumerations
diff --git a/doc/elementary/window.rst b/doc/elementary/window.rst
index 1728fb4..b97c0c0 100644
--- a/doc/elementary/window.rst
+++ b/doc/elementary/window.rst
@@ -95,8 +95,6 @@ Emitted signals
95- ``indicator,prop,changed``: an indicator's property has been changed 95- ``indicator,prop,changed``: an indicator's property has been changed
96- ``rotation,changed``: window rotation has been changed 96- ``rotation,changed``: window rotation has been changed
97- ``profile,changed``: profile of the window has been changed 97- ``profile,changed``: profile of the window has been changed
98- ``focused`` - When the window has received focus. (since 1.8)
99- ``unfocused`` - When the window has lost focus. (since 1.8)
100- ``theme,changed`` - The theme was changed. (since 1.13) 98- ``theme,changed`` - The theme was changed. (since 1.13)
101 99
102 100
diff --git a/efl/elementary/bubble.pxi b/efl/elementary/bubble.pxi
index e8662e8..a7cd27d 100644
--- a/efl/elementary/bubble.pxi
+++ b/efl/elementary/bubble.pxi
@@ -65,26 +65,5 @@ cdef class Bubble(LayoutClass):
65 def callback_clicked_del(self, func): 65 def callback_clicked_del(self, func):
66 self._callback_del("clicked", func) 66 self._callback_del("clicked", func)
67 67
68 def callback_focused_add(self, func, *args, **kwargs):
69 """When the bubble has received focus.
70
71 .. versionadded:: 1.8
72
73 """
74 self._callback_add("focused", func, args, kwargs)
75
76 def callback_focused_del(self, func):
77 self._callback_del("focused", func)
78
79 def callback_unfocused_add(self, func, *args, **kwargs):
80 """When the bubble has lost focus.
81
82 .. versionadded:: 1.8
83
84 """
85 self._callback_add("unfocused", func, args, kwargs)
86
87 def callback_unfocused_del(self, func):
88 self._callback_del("unfocused", func)
89 68
90_object_mapping_register("Elm_Bubble", Bubble) 69_object_mapping_register("Elm_Bubble", Bubble)
diff --git a/efl/elementary/button.pxi b/efl/elementary/button.pxi
index 67955cc..9abb7c9 100644
--- a/efl/elementary/button.pxi
+++ b/efl/elementary/button.pxi
@@ -134,26 +134,5 @@ cdef class Button(LayoutClass):
134 def callback_unpressed_del(self, func): 134 def callback_unpressed_del(self, func):
135 self._callback_del("unpressed", func) 135 self._callback_del("unpressed", func)
136 136
137 def callback_focused_add(self, func, *args, **kwargs):
138 """When the button has received focus.
139
140 .. versionadded:: 1.8
141
142 """
143 self._callback_add("focused", func, args, kwargs)
144
145 def callback_focused_del(self, func):
146 self._callback_del("focused", func)
147
148 def callback_unfocused_add(self, func, *args, **kwargs):
149 """When the button has lost focus.
150
151 .. versionadded:: 1.8
152
153 """
154 self._callback_add("unfocused", func, args, kwargs)
155
156 def callback_unfocused_del(self, func):
157 self._callback_del("unfocused", func)
158 137
159_object_mapping_register("Elm_Button", Button) 138_object_mapping_register("Elm_Button", Button)
diff --git a/efl/elementary/calendar.pxi b/efl/elementary/calendar.pxi
index 6df7765..a26bfd1 100644
--- a/efl/elementary/calendar.pxi
+++ b/efl/elementary/calendar.pxi
@@ -390,24 +390,5 @@ cdef class Calendar(LayoutClass):
390 def callback_changed_del(self, func): 390 def callback_changed_del(self, func):
391 self._callback_del("display,changed", func) 391 self._callback_del("display,changed", func)
392 392
393 def callback_focused_add(self, func, *args, **kwargs):
394 """When the calendar has received focus.
395
396 .. versionadded:: 1.8
397 """
398 self._callback_add("focused", func, args, kwargs)
399
400 def callback_focused_del(self, func):
401 self._callback_del("focused", func)
402
403 def callback_unfocused_add(self, func, *args, **kwargs):
404 """When the calendar has lost focus.
405
406 .. versionadded:: 1.8
407 """
408 self._callback_add("unfocused", func, args, kwargs)
409
410 def callback_unfocused_del(self, func):
411 self._callback_del("unfocused", func)
412 393
413_object_mapping_register("Elm_Calendar", Calendar) 394_object_mapping_register("Elm_Calendar", Calendar)
diff --git a/efl/elementary/check.pxi b/efl/elementary/check.pxi
index 3a77f2f..353b2f3 100644
--- a/efl/elementary/check.pxi
+++ b/efl/elementary/check.pxi
@@ -64,24 +64,5 @@ cdef class Check(LayoutClass):
64 def callback_changed_del(self, func): 64 def callback_changed_del(self, func):
65 self._callback_del("changed", func) 65 self._callback_del("changed", func)
66 66
67 def callback_focused_add(self, func, *args, **kwargs):
68 """When the check has received focus.
69
70 .. versionadded:: 1.8
71 """
72 self._callback_add("focused", func, args, kwargs)
73
74 def callback_focused_del(self, func):
75 self._callback_del("focused", func)
76
77 def callback_unfocused_add(self, func, *args, **kwargs):
78 """When the check has lost focus.
79
80 .. versionadded:: 1.8
81 """
82 self._callback_add("unfocused", func, args, kwargs)
83
84 def callback_unfocused_del(self, func):
85 self._callback_del("unfocused", func)
86 67
87_object_mapping_register("Elm_Check", Check) 68_object_mapping_register("Elm_Check", Check)
diff --git a/efl/elementary/clock.pxi b/efl/elementary/clock.pxi
index 6fa5ca8..d624e68 100644
--- a/efl/elementary/clock.pxi
+++ b/efl/elementary/clock.pxi
@@ -220,24 +220,5 @@ cdef class Clock(LayoutClass):
220 def callback_changed_del(self, func): 220 def callback_changed_del(self, func):
221 self._callback_del("changed", func) 221 self._callback_del("changed", func)
222 222
223 def callback_focused_add(self, func, *args, **kwargs):
224 """When the clock has received focus.
225
226 .. versionadded:: 1.8
227 """
228 self._callback_add("focused", func, args, kwargs)
229
230 def callback_focused_del(self, func):
231 self._callback_del("focused", func)
232
233 def callback_unfocused_add(self, func, *args, **kwargs):
234 """When the clock has lost focus.
235
236 .. versionadded:: 1.8
237 """
238 self._callback_add("unfocused", func, args, kwargs)
239
240 def callback_unfocused_del(self, func):
241 self._callback_del("unfocused", func)
242 223
243_object_mapping_register("Elm_Clock", Clock) 224_object_mapping_register("Elm_Clock", Clock)
diff --git a/efl/elementary/colorselector.pxi b/efl/elementary/colorselector.pxi
index ecbc2cc..e9c8f83 100644
--- a/efl/elementary/colorselector.pxi
+++ b/efl/elementary/colorselector.pxi
@@ -279,24 +279,5 @@ cdef class Colorselector(LayoutClass):
279 self._callback_del_full("color,item,longpressed", 279 self._callback_del_full("color,item,longpressed",
280 _cb_object_item_conv, func) 280 _cb_object_item_conv, func)
281 281
282 def callback_focused_add(self, func, *args, **kwargs):
283 """When the check has received focus.
284
285 .. versionadded:: 1.8
286 """
287 self._callback_add("focused", func, args, kwargs)
288
289 def callback_focused_del(self, func):
290 self._callback_del("focused", func)
291
292 def callback_unfocused_add(self, func, *args, **kwargs):
293 """When the check has lost focus.
294
295 .. versionadded:: 1.8
296 """
297 self._callback_add("unfocused", func, args, kwargs)
298
299 def callback_unfocused_del(self, func):
300 self._callback_del("unfocused", func)
301 282
302_object_mapping_register("Elm_Colorselector", Colorselector) 283_object_mapping_register("Elm_Colorselector", Colorselector)
diff --git a/efl/elementary/ctxpopup.pxi b/efl/elementary/ctxpopup.pxi
index 51d5768..857fa97 100644
--- a/efl/elementary/ctxpopup.pxi
+++ b/efl/elementary/ctxpopup.pxi
@@ -395,31 +395,5 @@ cdef class Ctxpopup(LayoutClass):
395 def callback_dismissed_del(self, func): 395 def callback_dismissed_del(self, func):
396 self._callback_del("dismissed", func) 396 self._callback_del("dismissed", func)
397 397
398 def callback_language_changed_add(self, func, *args, **kwargs):
399 """This is called when the program's language is changed."""
400 self._callback_add("language,changed", func, args, kwargs)
401
402 def callback_language_changed_del(self, func):
403 self._callback_del("language,changed", func)
404
405 def callback_focused_add(self, func, *args, **kwargs):
406 """When the ctxpopup has received focus.
407
408 .. versionadded:: 1.8
409 """
410 self._callback_add("focused", func, args, kwargs)
411
412 def callback_focused_del(self, func):
413 self._callback_del("focused", func)
414
415 def callback_unfocused_add(self, func, *args, **kwargs):
416 """When the ctxpopup has lost focus.
417
418 .. versionadded:: 1.8
419 """
420 self._callback_add("unfocused", func, args, kwargs)
421
422 def callback_unfocused_del(self, func):
423 self._callback_del("unfocused", func)
424 398
425_object_mapping_register("Elm_Ctxpopup", Ctxpopup) 399_object_mapping_register("Elm_Ctxpopup", Ctxpopup)
diff --git a/efl/elementary/datetime.pxi b/efl/elementary/datetime.pxi
index 0fab64b..768c3de 100644
--- a/efl/elementary/datetime.pxi
+++ b/efl/elementary/datetime.pxi
@@ -346,36 +346,5 @@ cdef class Datetime(Object):
346 def callback_changed_del(self, func): 346 def callback_changed_del(self, func):
347 self._callback_del("changed", func) 347 self._callback_del("changed", func)
348 348
349 @DEPRECATED("1.10", "Use callback_language_changed_add instead.")
350 def callback_languge_changed_add(self, func, *args, **kwargs):
351 """Whenever system locale changes, this signal is sent."""
352 self._callback_add("language,changed", func, args, kwargs)
353
354 def callback_language_changed_add(self, func, *args, **kwargs):
355 """Whenever system locale changes, this signal is sent."""
356 self._callback_add("language,changed", func, args, kwargs)
357
358 def callback_language_changed_del(self, func):
359 self._callback_del("language,changed", func)
360
361 def callback_focused_add(self, func, *args, **kwargs):
362 """When the datetime has received focus.
363
364 .. versionadded:: 1.8
365 """
366 self._callback_add("focused", func, args, kwargs)
367
368 def callback_focused_del(self, func):
369 self._callback_del("focused", func)
370
371 def callback_unfocused_add(self, func, *args, **kwargs):
372 """When the datetime has lost focus.
373
374 .. versionadded:: 1.8
375 """
376 self._callback_add("unfocused", func, args, kwargs)
377
378 def callback_unfocused_del(self, func):
379 self._callback_del("unfocused", func)
380 349
381_object_mapping_register("Elm_Datetime", Datetime) 350_object_mapping_register("Elm_Datetime", Datetime)
diff --git a/efl/elementary/dayselector.pxi b/efl/elementary/dayselector.pxi
index 420025c..4821283 100644
--- a/efl/elementary/dayselector.pxi
+++ b/efl/elementary/dayselector.pxi
@@ -133,12 +133,5 @@ cdef class Dayselector(LayoutClass):
133 def callback_dayselector_changed_del(self, func): 133 def callback_dayselector_changed_del(self, func):
134 self._callback_del("dayselector,changed", func) 134 self._callback_del("dayselector,changed", func)
135 135
136 def callback_language_changed_add(self, func, *args, **kwargs):
137 """the program's language changed"""
138 self._callback_add("language,changed", func, args, kwargs)
139
140 def callback_language_changed_del(self, func):
141 self._callback_del("language,changed", func)
142
143 136
144_object_mapping_register("Elm_Dayselector", Dayselector) 137_object_mapping_register("Elm_Dayselector", Dayselector)
diff --git a/efl/elementary/diskselector.pxi b/efl/elementary/diskselector.pxi
index e6f1fb3..9b118e5 100644
--- a/efl/elementary/diskselector.pxi
+++ b/efl/elementary/diskselector.pxi
@@ -406,26 +406,6 @@ cdef class Diskselector(Object):
406 def callback_scroll_drag_stop_del(self, func): 406 def callback_scroll_drag_stop_del(self, func):
407 self._callback_del("scroll,drag,stop", func) 407 self._callback_del("scroll,drag,stop", func)
408 408
409 def callback_focused_add(self, func, *args, **kwargs):
410 """When the diskselector has received focus.
411
412 .. versionadded:: 1.8
413 """
414 self._callback_add("focused", func, args, kwargs)
415
416 def callback_focused_del(self, func):
417 self._callback_del("focused", func)
418
419 def callback_unfocused_add(self, func, *args, **kwargs):
420 """When the diskselector has lost focus.
421
422 .. versionadded:: 1.8
423 """
424 self._callback_add("unfocused", func, args, kwargs)
425
426 def callback_unfocused_del(self, func):
427 self._callback_del("unfocused", func)
428
429 409
430 property scroller_policy: 410 property scroller_policy:
431 """ 411 """
diff --git a/efl/elementary/entry.pxi b/efl/elementary/entry.pxi
index 25bd031..8e82210 100644
--- a/efl/elementary/entry.pxi
+++ b/efl/elementary/entry.pxi
@@ -1640,20 +1640,6 @@ cdef class Entry(LayoutClass):
1640 def callback_triple_clicked_del(self, func): 1640 def callback_triple_clicked_del(self, func):
1641 self._callback_del("clicked,triple", func) 1641 self._callback_del("clicked,triple", func)
1642 1642
1643 def callback_focused_add(self, func, *args, **kwargs):
1644 """The entry has received focus."""
1645 self._callback_add("focused", func, args, kwargs)
1646
1647 def callback_focused_del(self, func):
1648 self._callback_del("focused", func)
1649
1650 def callback_unfocused_add(self, func, *args, **kwargs):
1651 """The entry has lost focus."""
1652 self._callback_add("unfocused", func, args, kwargs)
1653
1654 def callback_unfocused_del(self, func):
1655 self._callback_del("unfocused", func)
1656
1657 def callback_selection_paste_add(self, func, *args, **kwargs): 1643 def callback_selection_paste_add(self, func, *args, **kwargs):
1658 """A paste of the clipboard contents was requested.""" 1644 """A paste of the clipboard contents was requested."""
1659 self._callback_add("selection,paste", func, args, kwargs) 1645 self._callback_add("selection,paste", func, args, kwargs)
@@ -1778,13 +1764,6 @@ cdef class Entry(LayoutClass):
1778 def callback_preedit_changed_del(self, func): 1764 def callback_preedit_changed_del(self, func):
1779 self._callback_del("preedit,changed", func) 1765 self._callback_del("preedit,changed", func)
1780 1766
1781 def callback_language_changed_add(self, func, *args, **kwargs):
1782 """Program language changed."""
1783 self._callback_add("language,changed", func, args, kwargs)
1784
1785 def callback_language_changed_del(self, func):
1786 self._callback_del("language,changed", func)
1787
1788 def callback_text_set_done_add(self, func, *args, **kwargs): 1767 def callback_text_set_done_add(self, func, *args, **kwargs):
1789 """Whole text has been set to the entry.""" 1768 """Whole text has been set to the entry."""
1790 self._callback_add("text,set,done", func, args, kwargs) 1769 self._callback_add("text,set,done", func, args, kwargs)
diff --git a/efl/elementary/fileselector_button.pxi b/efl/elementary/fileselector_button.pxi
index 4cf9f9e..5bb0ec0 100644
--- a/efl/elementary/fileselector_button.pxi
+++ b/efl/elementary/fileselector_button.pxi
@@ -217,15 +217,5 @@ cdef class FileselectorButton(Button):
217 def callback_file_chosen_del(self, func): 217 def callback_file_chosen_del(self, func):
218 self._callback_del_full("file,chosen", _cb_string_conv, func) 218 self._callback_del_full("file,chosen", _cb_string_conv, func)
219 219
220 def callback_language_changed_add(self, func, *args, **kwargs):
221 """The program's language changed.
222
223 .. versionadded:: 1.8.1
224
225 """
226 self._callback_add("language,changed", func, args, kwargs)
227
228 def callback_language_changed_del(self, func):
229 self._callback_del("language,changed", func)
230 220
231_object_mapping_register("Elm_Fileselector_Button", FileselectorButton) 221_object_mapping_register("Elm_Fileselector_Button", FileselectorButton)
diff --git a/efl/elementary/fileselector_entry.pxi b/efl/elementary/fileselector_entry.pxi
index d258897..002dd1b 100644
--- a/efl/elementary/fileselector_entry.pxi
+++ b/efl/elementary/fileselector_entry.pxi
@@ -282,20 +282,6 @@ cdef class FileselectorEntry(LayoutClass):
282 def callback_clicked_double_del(self, func): 282 def callback_clicked_double_del(self, func):
283 self._callback_del("clicked,double", func) 283 self._callback_del("clicked,double", func)
284 284
285 def callback_focused_add(self, func, *args, **kwargs):
286 """The entry has received focus."""
287 self._callback_add("focused", func, args, kwargs)
288
289 def callback_focused_del(self, func):
290 self._callback_del("focused", func)
291
292 def callback_unfocused_add(self, func, *args, **kwargs):
293 """The entry has lost focus."""
294 self._callback_add("unfocused", func, args, kwargs)
295
296 def callback_unfocused_del(self, func):
297 self._callback_del("unfocused", func)
298
299 def callback_selection_paste_add(self, func, *args, **kwargs): 285 def callback_selection_paste_add(self, func, *args, **kwargs):
300 """A paste action has occurred on the entry.""" 286 """A paste action has occurred on the entry."""
301 self._callback_add("selection,paste", func, args, kwargs) 287 self._callback_add("selection,paste", func, args, kwargs)
@@ -335,15 +321,5 @@ cdef class FileselectorEntry(LayoutClass):
335 def callback_file_chosen_del(self, func): 321 def callback_file_chosen_del(self, func):
336 self._callback_del_full("file,chosen", _cb_string_conv, func) 322 self._callback_del_full("file,chosen", _cb_string_conv, func)
337 323
338 def callback_language_changed_add(self, func, *args, **kwargs):
339 """The program's language changed.
340
341 .. versionadded:: 1.8.1
342
343 """
344 self._callback_add("language,changed", func, args, kwargs)
345
346 def callback_language_changed_del(self, func):
347 self._callback_del("language,changed", func)
348 324
349_object_mapping_register("Elm_Fileselector_Entry", FileselectorEntry) 325_object_mapping_register("Elm_Fileselector_Entry", FileselectorEntry)
diff --git a/efl/elementary/flipselector.pxi b/efl/elementary/flipselector.pxi
index 77980e5..1756b1f 100644
--- a/efl/elementary/flipselector.pxi
+++ b/efl/elementary/flipselector.pxi
@@ -382,24 +382,5 @@ cdef class FlipSelector(Object):
382 def callback_underflowed_del(self, func): 382 def callback_underflowed_del(self, func):
383 self._callback_del("underflowed", func) 383 self._callback_del("underflowed", func)
384 384
385 def callback_focused_add(self, func, *args, **kwargs):
386 """When the flipselector has received focus.
387
388 .. versionadded:: 1.8
389 """
390 self._callback_add("focused", func, args, kwargs)
391
392 def callback_focused_del(self, func):
393 self._callback_del("focused", func)
394
395 def callback_unfocused_add(self, func, *args, **kwargs):
396 """When the flipselector has lost focus.
397
398 .. versionadded:: 1.8
399 """
400 self._callback_add("unfocused", func, args, kwargs)
401
402 def callback_unfocused_del(self, func):
403 self._callback_del("unfocused", func)
404 385
405_object_mapping_register("Elm_Flipselector", FlipSelector) 386_object_mapping_register("Elm_Flipselector", FlipSelector)
diff --git a/efl/elementary/gengrid_widget.pxi b/efl/elementary/gengrid_widget.pxi
index e27c737..a96c35d 100644
--- a/efl/elementary/gengrid_widget.pxi
+++ b/efl/elementary/gengrid_widget.pxi
@@ -975,32 +975,6 @@ cdef class Gengrid(Object):
975 def callback_unhighlighted_del(self, func): 975 def callback_unhighlighted_del(self, func):
976 self._callback_del_full("unhighlighted", _cb_object_item_conv, func) 976 self._callback_del_full("unhighlighted", _cb_object_item_conv, func)
977 977
978 def callback_language_changed_add(self, func, *args, **kwargs):
979 """This is called when the program's language is
980 changed. Call :meth:`Gengrid.realized_items_update` if items text
981 should be translated."""
982 self.callback_add("language,changed", func, args, kwargs)
983
984 def callback_focused_add(self, func, *args, **kwargs):
985 """When the gengrid has received focus.
986
987 .. versionadded:: 1.8
988 """
989 self._callback_add("focused", func, args, kwargs)
990
991 def callback_focused_del(self, func):
992 self._callback_del("focused", func)
993
994 def callback_unfocused_add(self, func, *args, **kwargs):
995 """When the gengrid has lost focus.
996
997 .. versionadded:: 1.8
998 """
999 self._callback_add("unfocused", func, args, kwargs)
1000
1001 def callback_unfocused_del(self, func):
1002 self._callback_del("unfocused", func)
1003
1004 def callback_item_focused_add(self, func, *args, **kwargs): 978 def callback_item_focused_add(self, func, *args, **kwargs):
1005 """When the gengrid item has received focus. 979 """When the gengrid item has received focus.
1006 980
diff --git a/efl/elementary/genlist_widget.pxi b/efl/elementary/genlist_widget.pxi
index 9c86788..6961255 100644
--- a/efl/elementary/genlist_widget.pxi
+++ b/efl/elementary/genlist_widget.pxi
@@ -1009,12 +1009,6 @@ cdef class Genlist(Object):
1009 def callback_moved_before_del(self, func): 1009 def callback_moved_before_del(self, func):
1010 self._callback_del_full("moved,before", _cb_object_item_conv, func) 1010 self._callback_del_full("moved,before", _cb_object_item_conv, func)
1011 1011
1012 def callback_language_changed_add(self, func, *args, **kwargs):
1013 self._callback_add("language,changed", func, args, kwargs)
1014
1015 def callback_language_changed_del(self, func):
1016 self._callback_del("language,changed", func)
1017
1018 def callback_tree_effect_finished_add(self, func, *args, **kwargs): 1012 def callback_tree_effect_finished_add(self, func, *args, **kwargs):
1019 self._callback_add("tree,effect,finished", func, args, kwargs) 1013 self._callback_add("tree,effect,finished", func, args, kwargs)
1020 1014
@@ -1043,26 +1037,6 @@ cdef class Genlist(Object):
1043 def callback_unhighlighted_del(self, func): 1037 def callback_unhighlighted_del(self, func):
1044 self._callback_del_full("unhighlighted", _cb_object_item_conv, func) 1038 self._callback_del_full("unhighlighted", _cb_object_item_conv, func)
1045 1039
1046 def callback_focused_add(self, func, *args, **kwargs):
1047 """When the genlist has received focus.
1048
1049 .. versionadded:: 1.8
1050 """
1051 self._callback_add("focused", func, args, kwargs)
1052
1053 def callback_focused_del(self, func):
1054 self._callback_del("focused", func)
1055
1056 def callback_unfocused_add(self, func, *args, **kwargs):
1057 """When the genlist has lost focus.
1058
1059 .. versionadded:: 1.8
1060 """
1061 self._callback_add("unfocused", func, args, kwargs)
1062
1063 def callback_unfocused_del(self, func):
1064 self._callback_del("unfocused", func)
1065
1066 def callback_item_focused_add(self, func, *args, **kwargs): 1040 def callback_item_focused_add(self, func, *args, **kwargs):
1067 """When the genlist item has received focus. 1041 """When the genlist item has received focus.
1068 1042
diff --git a/efl/elementary/glview.pyx b/efl/elementary/glview.pyx
index 13668d7..c2799d3 100644
--- a/efl/elementary/glview.pyx
+++ b/efl/elementary/glview.pyx
@@ -23,13 +23,6 @@ GLView hides all the complicated evas_gl details so that the user only
23has to deal with registering a few callback functions for rendering 23has to deal with registering a few callback functions for rendering
24to a surface using OpenGL APIs. 24to a surface using OpenGL APIs.
25 25
26This widget emits the following signals, besides the ones sent from
27:py:class:`LayoutClass<efl.elementary.layout_class.LayoutClass>`:
28
29- ``focused`` - when glview has received focus.
30- ``unfocused`` - when glview has lost focus.
31- ``language,changed`` - the program's language changed
32
33 26
34Enumerations 27Enumerations
35============ 28============
@@ -346,25 +339,5 @@ cdef class GLView(LayoutClass):
346 """ 339 """
347 elm_glview_changed_set(self.obj) 340 elm_glview_changed_set(self.obj)
348 341
349 def callback_focused_add(self, func, *args, **kwargs):
350 """when glview has received focus."""
351 self._callback_add("focused", func, args, kwargs)
352
353 def callback_focused_del(self, func):
354 self._callback_del("focused", func)
355
356 def callback_unfocused_add(self, func, *args, **kwargs):
357 """when glview has lost focus."""
358 self._callback_add("unfocused", func, args, kwargs)
359
360 def callback_unfocused_del(self, func):
361 self._callback_del("unfocused", func)
362
363 def callback_language_changed_add(self, func, *args, **kwargs):
364 """the program's language changed"""
365 self._callback_add("language,changed", func, args, kwargs)
366
367 def callback_language_changed_del(self, func):
368 self._callback_del("language,changed", func)
369 342
370_object_mapping_register("Elm_Glview", GLView) 343_object_mapping_register("Elm_Glview", GLView)
diff --git a/efl/elementary/hover.pxi b/efl/elementary/hover.pxi
index 17e63fd..a390ee6 100644
--- a/efl/elementary/hover.pxi
+++ b/efl/elementary/hover.pxi
@@ -139,25 +139,5 @@ cdef class Hover(LayoutClass):
139 def callback_smart_changed_del(self, func): 139 def callback_smart_changed_del(self, func):
140 self._callback_del("smart,changed", func) 140 self._callback_del("smart,changed", func)
141 141
142 def callback_focused_add(self, func, *args, **kwargs):
143 """When the hover has received focus.
144
145 .. versionadded:: 1.8
146 """
147 self._callback_add("focused", func, args, kwargs)
148
149 def callback_focused_del(self, func):
150 self._callback_del("focused", func)
151
152 def callback_unfocused_add(self, func, *args, **kwargs):
153 """When the hover has lost focus.
154
155 .. versionadded:: 1.8
156 """
157 self._callback_add("unfocused", func, args, kwargs)
158
159 def callback_unfocused_del(self, func):
160 self._callback_del("unfocused", func)
161
162 142
163_object_mapping_register("Elm_Hover", Hover) 143_object_mapping_register("Elm_Hover", Hover)
diff --git a/efl/elementary/index.pxi b/efl/elementary/index.pxi
index d9aebd7..4828d5d 100644
--- a/efl/elementary/index.pxi
+++ b/efl/elementary/index.pxi
@@ -589,31 +589,5 @@ cdef class Index(LayoutClass):
589 def callback_level_down_del(self, func): 589 def callback_level_down_del(self, func):
590 self._callback_del("level,down", func) 590 self._callback_del("level,down", func)
591 591
592 def callback_language_changed_add(self, func, *args, **kwargs):
593 """the program's language changed"""
594 self._callback_add("language,changed", func, args, kwargs)
595
596 def callback_language_changed_del(self, func):
597 self._callback_del("language,changed", func)
598
599 def callback_focused_add(self, func, *args, **kwargs):
600 """When the index has received focus.
601
602 .. versionadded:: 1.8
603 """
604 self._callback_add("focused", func, args, kwargs)
605
606 def callback_focused_del(self, func):
607 self._callback_del("focused", func)
608
609 def callback_unfocused_add(self, func, *args, **kwargs):
610 """When the index has lost focus.
611
612 .. versionadded:: 1.8
613 """
614 self._callback_add("unfocused", func, args, kwargs)
615
616 def callback_unfocused_del(self, func):
617 self._callback_del("unfocused", func)
618 592
619_object_mapping_register("Elm_Index", Index) 593_object_mapping_register("Elm_Index", Index)
diff --git a/efl/elementary/label.pxi b/efl/elementary/label.pxi
index 668632e..34cf742 100644
--- a/efl/elementary/label.pxi
+++ b/efl/elementary/label.pxi
@@ -195,13 +195,6 @@ cdef class Label(LayoutClass):
195 """ 195 """
196 elm_label_slide_go(self.obj) 196 elm_label_slide_go(self.obj)
197 197
198 def callback_language_changed_add(self, func, *args, **kwargs):
199 """The program's language changed."""
200 self._callback_add("language,changed", func, args, kwargs)
201
202 def callback_language_changed_del(self, func):
203 self._callback_del("language,changed", func)
204
205 def callback_slide_end_add(self, func, *args, **kwargs): 198 def callback_slide_end_add(self, func, *args, **kwargs):
206 """A slide effect has ended.""" 199 """A slide effect has ended."""
207 self._callback_add("slide,end", func, args, kwargs) 200 self._callback_add("slide,end", func, args, kwargs)
diff --git a/efl/elementary/layout.pxi b/efl/elementary/layout.pxi
index efb97ab..7e88f6c 100644
--- a/efl/elementary/layout.pxi
+++ b/efl/elementary/layout.pxi
@@ -927,12 +927,6 @@ cdef class LayoutClass(Object):
927 def callback_theme_changed_del(self, func): 927 def callback_theme_changed_del(self, func):
928 self._callback_del("theme,changed", func) 928 self._callback_del("theme,changed", func)
929 929
930 def callback_language_changed_add(self,func,*args, **kwargs):
931 """the program's language changed"""
932 self._callback_add("language,changed", func, args, kwargs)
933
934 def callback_language_changed_del(self, func):
935 self._callback_del("language,changed", func)
936 930
937 931
938cdef class Layout(LayoutClass): 932cdef class Layout(LayoutClass):
diff --git a/efl/elementary/list.pxi b/efl/elementary/list.pxi
index 6735dd8..a76abcb 100644
--- a/efl/elementary/list.pxi
+++ b/efl/elementary/list.pxi
@@ -882,13 +882,6 @@ cdef class List(Object):
882 def callback_edge_right_del(self, func): 882 def callback_edge_right_del(self, func):
883 self._callback_del("edge,right", func) 883 self._callback_del("edge,right", func)
884 884
885 def callback_language_changed_add(self, func, *args, **kwargs):
886 """The program's language changed."""
887 self._callback_add("language,changed", func, args, kwargs)
888
889 def callback_language_changed_del(self, func):
890 self._callback_del("language,changed", func)
891
892 def callback_highlighted_add(self, func, *args, **kwargs): 885 def callback_highlighted_add(self, func, *args, **kwargs):
893 """an item in the list is highlighted. This is called when 886 """an item in the list is highlighted. This is called when
894 the user presses an item or keyboard selection is done so the item is 887 the user presses an item or keyboard selection is done so the item is
@@ -921,33 +914,6 @@ cdef class List(Object):
921 def callback_unhighlighted_del(self, func): 914 def callback_unhighlighted_del(self, func):
922 self._callback_del_full("unhighlighted", _cb_object_item_conv, func) 915 self._callback_del_full("unhighlighted", _cb_object_item_conv, func)
923 916
924 def callback_language_changed_add(self, func, *args, **kwargs):
925 """the program's language changed"""
926 self._callback_add("language,changed", func, args, kwargs)
927
928 def callback_language_changed_del(self, func):
929 self._callback_del("language,changed", func)
930
931 def callback_focused_add(self, func, *args, **kwargs):
932 """When the list has received focus.
933
934 .. versionadded:: 1.8
935 """
936 self._callback_add("focused", func, args, kwargs)
937
938 def callback_focused_del(self, func):
939 self._callback_del("focused", func)
940
941 def callback_unfocused_add(self, func, *args, **kwargs):
942 """When the list has lost focus.
943
944 .. versionadded:: 1.8
945 """
946 self._callback_add("unfocused", func, args, kwargs)
947
948 def callback_unfocused_del(self, func):
949 self._callback_del("unfocused", func)
950
951 def callback_item_focused_add(self, func, *args, **kwargs): 917 def callback_item_focused_add(self, func, *args, **kwargs):
952 """When the list item has received focus. 918 """When the list item has received focus.
953 919
diff --git a/efl/elementary/map.pxi b/efl/elementary/map.pxi
index e02e5e0..26dadd3 100644
--- a/efl/elementary/map.pxi
+++ b/efl/elementary/map.pxi
@@ -1618,34 +1618,6 @@ cdef class Map(Object):
1618 """ Delete a previously attached callback """ 1618 """ Delete a previously attached callback """
1619 self._callback_del("loaded", func) 1619 self._callback_del("loaded", func)
1620 1620
1621 def callback_language_changed_add(self, func, *args, **kwargs):
1622 """ Add a callback to be called on the "language,changed" signal. """
1623 self._callback_add("language,changed", func, args, kwargs)
1624
1625 def callback_language_changed_del(self, func):
1626 """ Delete a previously attached callback """
1627 self._callback_del("language,changed", func)
1628
1629 def callback_focused_add(self, func, *args, **kwargs):
1630 """When the map has received focus.
1631
1632 .. versionadded:: 1.8
1633 """
1634 self._callback_add("focused", func, args, kwargs)
1635
1636 def callback_focused_del(self, func):
1637 self._callback_del("focused", func)
1638
1639 def callback_unfocused_add(self, func, *args, **kwargs):
1640 """When the map has lost focus.
1641
1642 .. versionadded:: 1.8
1643 """
1644 self._callback_add("unfocused", func, args, kwargs)
1645
1646 def callback_unfocused_del(self, func):
1647 self._callback_del("unfocused", func)
1648
1649 property scroller_policy: 1621 property scroller_policy:
1650 """ 1622 """
1651 1623
diff --git a/efl/elementary/multibuttonentry.pxi b/efl/elementary/multibuttonentry.pxi
index 27da297..e1bfbf3 100644
--- a/efl/elementary/multibuttonentry.pxi
+++ b/efl/elementary/multibuttonentry.pxi
@@ -478,18 +478,6 @@ cdef class MultiButtonEntry(Object):
478 def callback_clicked_del(self, func): 478 def callback_clicked_del(self, func):
479 self._callback_del("clicked", func) 479 self._callback_del("clicked", func)
480 480
481 def callback_focused_add(self, func, *args, **kwargs):
482 self._callback_add("focused", func, args, kwargs)
483
484 def callback_focused_del(self, func):
485 self._callback_del("focused", func)
486
487 def callback_unfocused_add(self, func, *args, **kwargs):
488 self._callback_add("unfocused", func, args, kwargs)
489
490 def callback_unfocused_del(self, func):
491 self._callback_del("unfocused", func)
492
493 def callback_expanded_add(self, func, *args, **kwargs): 481 def callback_expanded_add(self, func, *args, **kwargs):
494 self._callback_add("expanded", func, args, kwargs) 482 self._callback_add("expanded", func, args, kwargs)
495 483
diff --git a/efl/elementary/naviframe.pxi b/efl/elementary/naviframe.pxi
index 16bf1ce..bee57e4 100644
--- a/efl/elementary/naviframe.pxi
+++ b/efl/elementary/naviframe.pxi
@@ -502,24 +502,5 @@ cdef class Naviframe(LayoutClass):
502 def callback_title_clicked_del(self, func): 502 def callback_title_clicked_del(self, func):
503 self._callback_del_full("title,clicked", _cb_object_item_conv, func) 503 self._callback_del_full("title,clicked", _cb_object_item_conv, func)
504 504
505 def callback_focused_add(self, func, *args, **kwargs):
506 """When the naviframe has received focus.
507
508 .. versionadded:: 1.8
509 """
510 self._callback_add("focused", func, args, kwargs)
511
512 def callback_focused_del(self, func):
513 self._callback_del("focused", func)
514
515 def callback_unfocused_add(self, func, *args, **kwargs):
516 """When the naviframe has lost focus.
517
518 .. versionadded:: 1.8
519 """
520 self._callback_add("unfocused", func, args, kwargs)
521
522 def callback_unfocused_del(self, func):
523 self._callback_del("unfocused", func)
524 505
525_object_mapping_register("Elm_Naviframe", Naviframe) 506_object_mapping_register("Elm_Naviframe", Naviframe)
diff --git a/efl/elementary/object.pxi b/efl/elementary/object.pxi
index 5c5ddad..fd8cb36 100644
--- a/efl/elementary/object.pxi
+++ b/efl/elementary/object.pxi
@@ -595,6 +595,54 @@ cdef class Object(SmartObject):
595 return bool(elm_object_orientation_mode_disabled_get(self.obj)) 595 return bool(elm_object_orientation_mode_disabled_get(self.obj))
596 596
597 # 597 #
598 # Smart event callbacks
599 # =====================
600
601 def callback_moved_add(self, func, *args, **kwargs):
602 """ The Object change position.
603
604 .. versionadded:: 1.17
605 """
606 self._callback_add("moved", func, args, kwargs)
607
608 def callback_moved_del(self, func):
609 """ Delete a previously attached callback """
610 self._callback_del("moved", func)
611
612 def callback_focused_add(self, func, *args, **kwargs):
613 """ The Object has received focus.
614
615 .. versionadded:: 1.8
616 """
617 self._callback_add("focused", func, args, kwargs)
618
619 def callback_focused_del(self, func):
620 """ Delete a previously attached callback """
621 self._callback_del("focused", func)
622
623 def callback_unfocused_add(self, func, *args, **kwargs):
624 """ The Object has lost focus.
625
626 .. versionadded:: 1.8
627 """
628 self._callback_add("unfocused", func, args, kwargs)
629
630 def callback_unfocused_del(self, func):
631 """ Delete a previously attached callback """
632 self._callback_del("unfocused", func)
633
634 def callback_language_changed_add(self, func, *args, **kwargs):
635 """ The program's language changed
636
637 .. versionadded:: 1.8.1
638 """
639 self._callback_add("language,changed", func, args, kwargs)
640
641 def callback_language_changed_del(self, func):
642 """ Delete a previously attached callback """
643 self._callback_del("language,changed", func)
644
645 #
598 # Cursors 646 # Cursors
599 # ======= 647 # =======
600 648
diff --git a/efl/elementary/panel.pxi b/efl/elementary/panel.pxi
index c3351ef..1cf63d0 100644
--- a/efl/elementary/panel.pxi
+++ b/efl/elementary/panel.pxi
@@ -112,24 +112,5 @@ cdef class Panel(LayoutClass):
112 """Toggle the hidden state of the panel from code.""" 112 """Toggle the hidden state of the panel from code."""
113 elm_panel_toggle(self.obj) 113 elm_panel_toggle(self.obj)
114 114
115 def callback_focused_add(self, func, *args, **kwargs):
116 """When the panel has received focus.
117
118 .. versionadded:: 1.8
119 """
120 self._callback_add("focused", func, args, kwargs)
121
122 def callback_focused_del(self, func):
123 self._callback_del("focused", func)
124
125 def callback_unfocused_add(self, func, *args, **kwargs):
126 """When the panel has lost focus.
127
128 .. versionadded:: 1.8
129 """
130 self._callback_add("unfocused", func, args, kwargs)
131
132 def callback_unfocused_del(self, func):
133 self._callback_del("unfocused", func)
134 115
135_object_mapping_register("Elm_Panel", Panel) 116_object_mapping_register("Elm_Panel", Panel)
diff --git a/efl/elementary/photocam.pxi b/efl/elementary/photocam.pxi
index c6dd88b..e6f7f7d 100644
--- a/efl/elementary/photocam.pxi
+++ b/efl/elementary/photocam.pxi
@@ -482,25 +482,6 @@ cdef class Photocam(Object):
482 def callback_download_error_del(self, func): 482 def callback_download_error_del(self, func):
483 self._callback_del_full("download,error", _photocam_download_error_conv, func) 483 self._callback_del_full("download,error", _photocam_download_error_conv, func)
484 484
485 def callback_focused_add(self, func, *args, **kwargs):
486 """When the photocam has received focus.
487
488 .. versionadded:: 1.8
489 """
490 self._callback_add("focused", func, args, kwargs)
491
492 def callback_focused_del(self, func):
493 self._callback_del("focused", func)
494
495 def callback_unfocused_add(self, func, *args, **kwargs):
496 """When the photocam has lost focus.
497
498 .. versionadded:: 1.8
499 """
500 self._callback_add("unfocused", func, args, kwargs)
501
502 def callback_unfocused_del(self, func):
503 self._callback_del("unfocused", func)
504 485
505 property scroller_policy: 486 property scroller_policy:
506 """ 487 """
diff --git a/efl/elementary/popup.pxi b/efl/elementary/popup.pxi
index a65688e..e14676a 100644
--- a/efl/elementary/popup.pxi
+++ b/efl/elementary/popup.pxi
@@ -225,36 +225,6 @@ cdef class Popup(LayoutClass):
225 def callback_block_clicked_del(self, func): 225 def callback_block_clicked_del(self, func):
226 self._callback_del("block,clicked", func) 226 self._callback_del("block,clicked", func)
227 227
228 def callback_focused_add(self, func, *args, **kwargs):
229 """When the popup has received focus.
230
231 .. versionadded:: 1.8
232 """
233 self._callback_add("focused", func, args, kwargs)
234
235 def callback_focused_del(self, func):
236 self._callback_del("focused", func)
237
238 def callback_unfocused_add(self, func, *args, **kwargs):
239 """When the popup has lost focus.
240
241 .. versionadded:: 1.8
242 """
243 self._callback_add("unfocused", func, args, kwargs)
244
245 def callback_unfocused_del(self, func):
246 self._callback_del("unfocused", func)
247
248 def callback_language_changed_add(self, func, *args, **kwargs):
249 """the program's language changed
250
251 .. versionadded:: 1.8
252 """
253 self._callback_add("language,changed", func, args, kwargs)
254
255 def callback_language_changed_del(self, func):
256 self._callback_del("language,changed", func)
257
258 def callback_item_focused_add(self, func, *args, **kwargs): 228 def callback_item_focused_add(self, func, *args, **kwargs):
259 """When the popup item has received focus. 229 """When the popup item has received focus.
260 230
diff --git a/efl/elementary/progressbar.pxi b/efl/elementary/progressbar.pxi
index 11519bb..b48a16f 100644
--- a/efl/elementary/progressbar.pxi
+++ b/efl/elementary/progressbar.pxi
@@ -248,24 +248,5 @@ cdef class Progressbar(LayoutClass):
248 def callback_changed_del(self, func): 248 def callback_changed_del(self, func):
249 self._callback_del("changed", func) 249 self._callback_del("changed", func)
250 250
251 def callback_focused_add(self, func, *args, **kwargs):
252 """When the progressbar has received focus.
253
254 .. versionadded:: 1.8
255 """
256 self._callback_add("focused", func, args, kwargs)
257
258 def callback_focused_del(self, func):
259 self._callback_del("focused", func)
260
261 def callback_unfocused_add(self, func, *args, **kwargs):
262 """When the progressbar has lost focus.
263
264 .. versionadded:: 1.8
265 """
266 self._callback_add("unfocused", func, args, kwargs)
267
268 def callback_unfocused_del(self, func):
269 self._callback_del("unfocused", func)
270 251
271_object_mapping_register("Elm_Progressbar", Progressbar) 252_object_mapping_register("Elm_Progressbar", Progressbar)
diff --git a/efl/elementary/radio.pxi b/efl/elementary/radio.pxi
index 70f82bb..9778a5c 100644
--- a/efl/elementary/radio.pxi
+++ b/efl/elementary/radio.pxi
@@ -128,24 +128,5 @@ cdef class Radio(LayoutClass):
128 def callback_changed_del(self, func): 128 def callback_changed_del(self, func):
129 self._callback_del("changed", func) 129 self._callback_del("changed", func)
130 130
131 def callback_focused_add(self, func, *args, **kwargs):
132 """When the radio has received focus.
133
134 .. versionadded:: 1.8
135 """
136 self._callback_add("focused", func, args, kwargs)
137
138 def callback_focused_del(self, func):
139 self._callback_del("focused", func)
140
141 def callback_unfocused_add(self, func, *args, **kwargs):
142 """When the radio has lost focus.
143
144 .. versionadded:: 1.8
145 """
146 self._callback_add("unfocused", func, args, kwargs)
147
148 def callback_unfocused_del(self, func):
149 self._callback_del("unfocused", func)
150 131
151_object_mapping_register("Elm_Radio", Radio) 132_object_mapping_register("Elm_Radio", Radio)
diff --git a/efl/elementary/scroller.pxi b/efl/elementary/scroller.pxi
index deff9d7..215db4b 100644
--- a/efl/elementary/scroller.pxi
+++ b/efl/elementary/scroller.pxi
@@ -669,7 +669,6 @@ cdef class Scrollable(Object):
669 def callback_scroll_down_del(self, func): 669 def callback_scroll_down_del(self, func):
670 self._callback_del("scroll,down", func) 670 self._callback_del("scroll,down", func)
671 671
672
673 def callback_scroll_anim_start_add(self, func, *args, **kwargs): 672 def callback_scroll_anim_start_add(self, func, *args, **kwargs):
674 """Scrolling animation has started.""" 673 """Scrolling animation has started."""
675 self._callback_add("scroll,anim,start", func, args, kwargs) 674 self._callback_add("scroll,anim,start", func, args, kwargs)
@@ -747,26 +746,6 @@ cdef class Scrollable(Object):
747 def callback_scroll_page_changed_del(self, func): 746 def callback_scroll_page_changed_del(self, func):
748 self._callback_del("scroll,page,changed", func) 747 self._callback_del("scroll,page,changed", func)
749 748
750 def callback_focused_add(self, func, *args, **kwargs):
751 """When the scroller has received focus.
752
753 .. versionadded:: 1.8
754 """
755 self._callback_add("focused", func, args, kwargs)
756
757 def callback_focused_del(self, func):
758 self._callback_del("focused", func)
759
760 def callback_unfocused_add(self, func, *args, **kwargs):
761 """When the scroller has lost focus.
762
763 .. versionadded:: 1.8
764 """
765 self._callback_add("unfocused", func, args, kwargs)
766
767 def callback_unfocused_del(self, func):
768 self._callback_del("unfocused", func)
769
770 749
771cdef class _ScrollerWidget(LayoutClass): 750cdef class _ScrollerWidget(LayoutClass):
772 def __init__(self, evasObject parent, *args, **kwargs): 751 def __init__(self, evasObject parent, *args, **kwargs):
diff --git a/efl/elementary/slider.pxi b/efl/elementary/slider.pxi
index d9c409e..82d124c 100644
--- a/efl/elementary/slider.pxi
+++ b/efl/elementary/slider.pxi
@@ -377,24 +377,5 @@ cdef class Slider(LayoutClass):
377 def callback_delay_changed_del(self, func): 377 def callback_delay_changed_del(self, func):
378 self._callback_del("delay,changed", func) 378 self._callback_del("delay,changed", func)
379 379
380 def callback_focused_add(self, func, *args, **kwargs):
381 """When the slider has received focus.
382
383 .. versionadded:: 1.8
384 """
385 self._callback_add("focused", func, args, kwargs)
386
387 def callback_focused_del(self, func):
388 self._callback_del("focused", func)
389
390 def callback_unfocused_add(self, func, *args, **kwargs):
391 """When the slider has lost focus.
392
393 .. versionadded:: 1.8
394 """
395 self._callback_add("unfocused", func, args, kwargs)
396
397 def callback_unfocused_del(self, func):
398 self._callback_del("unfocused", func)
399 380
400_object_mapping_register("Elm_Slider", Slider) 381_object_mapping_register("Elm_Slider", Slider)
diff --git a/efl/elementary/slideshow.pxi b/efl/elementary/slideshow.pxi
index 65a7892..ac177c7 100644
--- a/efl/elementary/slideshow.pxi
+++ b/efl/elementary/slideshow.pxi
@@ -673,24 +673,5 @@ cdef class Slideshow(LayoutClass):
673 def callback_transition_end_del(self, func): 673 def callback_transition_end_del(self, func):
674 self._callback_del_full("transition,end", _cb_object_item_conv, func) 674 self._callback_del_full("transition,end", _cb_object_item_conv, func)
675 675
676 def callback_focused_add(self, func, *args, **kwargs):
677 """When the slideshow has received focus.
678
679 .. versionadded:: 1.8
680 """
681 self._callback_add("focused", func, args, kwargs)
682
683 def callback_focused_del(self, func):
684 self._callback_del("focused", func)
685
686 def callback_unfocused_add(self, func, *args, **kwargs):
687 """When the slideshow has lost focus.
688
689 .. versionadded:: 1.8
690 """
691 self._callback_add("unfocused", func, args, kwargs)
692
693 def callback_unfocused_del(self, func):
694 self._callback_del("unfocused", func)
695 676
696_object_mapping_register("Elm_Slideshow", Slideshow) 677_object_mapping_register("Elm_Slideshow", Slideshow)
diff --git a/efl/elementary/spinner.pxi b/efl/elementary/spinner.pxi
index bfeaf6a..1baa094 100644
--- a/efl/elementary/spinner.pxi
+++ b/efl/elementary/spinner.pxi
@@ -367,31 +367,5 @@ cdef class Spinner(LayoutClass):
367 def callback_delay_changed_del(self, func): 367 def callback_delay_changed_del(self, func):
368 self._callback_del("delay,changed", func) 368 self._callback_del("delay,changed", func)
369 369
370 def callback_language_changed_add(self, func, *args, **kwargs):
371 """the program's language changed"""
372 self._callback_add("language,changed", func, args, kwargs)
373
374 def callback_language_changed_del(self, func):
375 self._callback_del("language,changed", func)
376
377 def callback_focused_add(self, func, *args, **kwargs):
378 """When the spinner has received focus.
379
380 .. versionadded:: 1.8
381 """
382 self._callback_add("focused", func, args, kwargs)
383
384 def callback_focused_del(self, func):
385 self._callback_del("focused", func)
386
387 def callback_unfocused_add(self, func, *args, **kwargs):
388 """When the spinner has lost focus.
389
390 .. versionadded:: 1.8
391 """
392 self._callback_add("unfocused", func, args, kwargs)
393
394 def callback_unfocused_del(self, func):
395 self._callback_del("unfocused", func)
396 370
397_object_mapping_register("Elm_Spinner", Spinner) 371_object_mapping_register("Elm_Spinner", Spinner)
diff --git a/efl/elementary/toolbar.pxi b/efl/elementary/toolbar.pxi
index 3f2e24f..e9aee57 100644
--- a/efl/elementary/toolbar.pxi
+++ b/efl/elementary/toolbar.pxi
@@ -952,33 +952,6 @@ cdef class Toolbar(LayoutClass):
952 def callback_longpressed_del(self, func): 952 def callback_longpressed_del(self, func):
953 self._callback_del_full("longpressed", _cb_object_item_conv, func) 953 self._callback_del_full("longpressed", _cb_object_item_conv, func)
954 954
955 def callback_language_changed_add(self, func, *args, **kwargs):
956 """When the program language changes."""
957 self._callback_add("language,changed", func, args, kwargs)
958
959 def callback_language_changed_del(self, func):
960 self._callback_del("language,changed", func)
961
962 def callback_focused_add(self, func, *args, **kwargs):
963 """When the toolbar has received focus.
964
965 .. versionadded:: 1.8
966 """
967 self._callback_add("focused", func, args, kwargs)
968
969 def callback_focused_del(self, func):
970 self._callback_del("focused", func)
971
972 def callback_unfocused_add(self, func, *args, **kwargs):
973 """When the toolbar has lost focus.
974
975 .. versionadded:: 1.8
976 """
977 self._callback_add("unfocused", func, args, kwargs)
978
979 def callback_unfocused_del(self, func):
980 self._callback_del("unfocused", func)
981
982 def callback_item_focused_add(self, func, *args, **kwargs): 955 def callback_item_focused_add(self, func, *args, **kwargs):
983 """When the toolbar item has received focus. 956 """When the toolbar item has received focus.
984 957
diff --git a/efl/elementary/video.pxi b/efl/elementary/video.pxi
index 5330ba7..aa7c8dc 100644
--- a/efl/elementary/video.pxi
+++ b/efl/elementary/video.pxi
@@ -228,25 +228,6 @@ cdef class Video(LayoutClass):
228 def title_get(self): 228 def title_get(self):
229 return _ctouni(elm_video_title_get(self.obj)) 229 return _ctouni(elm_video_title_get(self.obj))
230 230
231 def callback_focused_add(self, func, *args, **kwargs):
232 """When the video has received focus.
233
234 .. versionadded:: 1.8
235 """
236 self._callback_add("focused", func, args, kwargs)
237
238 def callback_focused_del(self, func):
239 self._callback_del("focused", func)
240
241 def callback_unfocused_add(self, func, *args, **kwargs):
242 """When the video has lost focus.
243
244 .. versionadded:: 1.8
245 """
246 self._callback_add("unfocused", func, args, kwargs)
247
248 def callback_unfocused_del(self, func):
249 self._callback_del("unfocused", func)
250 231
251_object_mapping_register("Elm_Video", Video) 232_object_mapping_register("Elm_Video", Video)
252 233
@@ -347,24 +328,5 @@ cdef class Player(LayoutClass):
347 def callback_stop_clicked_del(self, func): 328 def callback_stop_clicked_del(self, func):
348 self._callback_del("stop,clicked", func) 329 self._callback_del("stop,clicked", func)
349 330
350 def callback_focused_add(self, func, *args, **kwargs):
351 """When the player has received focus.
352
353 .. versionadded:: 1.8
354 """
355 self._callback_add("focused", func, args, kwargs)
356
357 def callback_focused_del(self, func):
358 self._callback_del("focused", func)
359
360 def callback_unfocused_add(self, func, *args, **kwargs):
361 """When the player has lost focus.
362
363 .. versionadded:: 1.8
364 """
365 self._callback_add("unfocused", func, args, kwargs)
366
367 def callback_unfocused_del(self, func):
368 self._callback_del("unfocused", func)
369 331
370_object_mapping_register("Elm_Player", Player) 332_object_mapping_register("Elm_Player", Player)
diff --git a/efl/elementary/web.pxi b/efl/elementary/web.pxi
index 19c2c19..b9ee90d 100644
--- a/efl/elementary/web.pxi
+++ b/efl/elementary/web.pxi
@@ -1089,27 +1089,6 @@ cdef class Web(Object):
1089 def callback_zoom_animated_end_del(self, func): 1089 def callback_zoom_animated_end_del(self, func):
1090 self._callback_del("zoom,animated,end", func) 1090 self._callback_del("zoom,animated,end", func)
1091 1091
1092 def callback_focused_add(self, func, *args, **kwargs):
1093 """When the web has received focus.
1094
1095 .. versionadded:: 1.8
1096
1097 """
1098 self._callback_add("focused", func, args, kwargs)
1099
1100 def callback_focused_del(self, func):
1101 self._callback_del("focused", func)
1102
1103 def callback_unfocused_add(self, func, *args, **kwargs):
1104 """When the web has lost focus.
1105
1106 .. versionadded:: 1.8
1107
1108 """
1109 self._callback_add("unfocused", func, args, kwargs)
1110
1111 def callback_unfocused_del(self, func):
1112 self._callback_del("unfocused", func)
1113 1092
1114 1093
1115_object_mapping_register("Elm_Web", Web) 1094_object_mapping_register("Elm_Web", Web)
diff --git a/efl/elementary/window.pxi b/efl/elementary/window.pxi
index ae0665f..bbf9346 100644
--- a/efl/elementary/window.pxi
+++ b/efl/elementary/window.pxi
@@ -1454,26 +1454,6 @@ cdef class Window(Object):
1454 def callback_profile_changed_del(self, func): 1454 def callback_profile_changed_del(self, func):
1455 self._callback_del("profile,changed", func) 1455 self._callback_del("profile,changed", func)
1456 1456
1457 def callback_focused_add(self, func, *args, **kwargs):
1458 """When the window has received focus.
1459
1460 .. versionadded:: 1.8
1461 """
1462 self._callback_add("focused", func, args, kwargs)
1463
1464 def callback_focused_del(self, func):
1465 self._callback_del("focused", func)
1466
1467 def callback_unfocused_add(self, func, *args, **kwargs):
1468 """When the window has lost focus.
1469
1470 .. versionadded:: 1.8
1471 """
1472 self._callback_add("unfocused", func, args, kwargs)
1473
1474 def callback_unfocused_del(self, func):
1475 self._callback_del("unfocused", func)
1476
1477 def callback_theme_changed_add(self, func, *args, **kwargs): 1457 def callback_theme_changed_add(self, func, *args, **kwargs):
1478 """When the theme was changed. 1458 """When the theme was changed.
1479 1459
diff --git a/examples/elementary/test_focus.py b/examples/elementary/test_focus.py
index 63be861..48272e0 100644
--- a/examples/elementary/test_focus.py
+++ b/examples/elementary/test_focus.py
@@ -39,6 +39,9 @@ def _tb_sel(tb, item):
39 print(item) 39 print(item)
40 print(item.text) 40 print(item.text)
41 41
42def _obj_focused_cb(obj):
43 print("Focused: ", obj)
44
42def focus_clicked(obj, item=None): 45def focus_clicked(obj, item=None):
43 win = StandardWindow("focus", "Focus", autodel=True, size=(800,600)) 46 win = StandardWindow("focus", "Focus", autodel=True, size=(800,600))
44 47
@@ -51,6 +54,7 @@ def focus_clicked(obj, item=None):
51 ### Toolbar 54 ### Toolbar
52 tbar = Toolbar(win, shrink_mode=ELM_TOOLBAR_SHRINK_MENU, 55 tbar = Toolbar(win, shrink_mode=ELM_TOOLBAR_SHRINK_MENU,
53 size_hint_align=(EVAS_HINT_FILL,0.0)) 56 size_hint_align=(EVAS_HINT_FILL,0.0))
57 tbar.callback_focused_add(_obj_focused_cb)
54 58
55 tb_it = tbar.item_append("document-print", "Hello", _tb_sel) 59 tb_it = tbar.item_append("document-print", "Hello", _tb_sel)
56 tb_it.disabled = True 60 tb_it.disabled = True
@@ -89,6 +93,7 @@ def focus_clicked(obj, item=None):
89 lb.show() 93 lb.show()
90 94
91 tg = Check(win, style="toggle") 95 tg = Check(win, style="toggle")
96 tg.callback_focused_add(_obj_focused_cb)
92 tg.part_text_set("on", "Yes") 97 tg.part_text_set("on", "Yes")
93 tg.part_text_set("off", "No") 98 tg.part_text_set("off", "No")
94 bx.pack_end(tg) 99 bx.pack_end(tg)
@@ -96,6 +101,7 @@ def focus_clicked(obj, item=None):
96 101
97 en = Entry(win, scrollable=True, single_line=True, text="This is a single line", 102 en = Entry(win, scrollable=True, single_line=True, text="This is a single line",
98 size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_HORIZ) 103 size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_HORIZ)
104 en.callback_focused_add(_obj_focused_cb)
99 bx.pack_end(en) 105 bx.pack_end(en)
100 en.show() 106 en.show()
101 107
@@ -106,6 +112,7 @@ def focus_clicked(obj, item=None):
106 112
107 for i in range(2): 113 for i in range(2):
108 bt = Button(win, text="Box", size_hint_align=FILL_BOTH, disabled=(i % 2)) 114 bt = Button(win, text="Box", size_hint_align=FILL_BOTH, disabled=(i % 2))
115 bt.callback_focused_add(_obj_focused_cb)
109 bx2.pack_end(bt) 116 bx2.pack_end(bt)
110 bt.show() 117 bt.show()
111 118
@@ -115,11 +122,13 @@ def focus_clicked(obj, item=None):
115 sc.show() 122 sc.show()
116 123
117 bt = Button(win, text="Scroller", size_hint_align=FILL_BOTH) 124 bt = Button(win, text="Scroller", size_hint_align=FILL_BOTH)
125 bt.callback_focused_add(_obj_focused_cb)
118 sc.content = bt 126 sc.content = bt
119 bt.show() 127 bt.show()
120 128
121 # 129 #
122 bt = Button(win, text="Box", size_hint_align=FILL_BOTH) 130 bt = Button(win, text="Box", size_hint_align=FILL_BOTH)
131 bt.callback_focused_add(_obj_focused_cb)
123 bx.pack_end(bt) 132 bx.pack_end(bt)
124 bt.show() 133 bt.show()
125 134
@@ -135,13 +144,14 @@ def focus_clicked(obj, item=None):
135 144
136 for j in range(3): 145 for j in range(3):
137 bt = Button(win, text="Box", size_hint_align=FILL_BOTH) 146 bt = Button(win, text="Box", size_hint_align=FILL_BOTH)
147 bt.callback_focused_add(_obj_focused_cb)
138 bx3.pack_end(bt) 148 bx3.pack_end(bt)
139 bt.show() 149 bt.show()
140 150
141 151
142 sc = Scroller(win, bounce=(False, True), content_min_limit=(1,0), 152 sc = Scroller(win, bounce=(False, True), content_min_limit=(1,0),
143 size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH) 153 size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH)
144 sc.content_min_limit=(1,1) 154 sc.content_min_limit=(1, 1) ## Why this do not work ???
145 bx2.pack_end(sc) 155 bx2.pack_end(sc)
146 sc.show() 156 sc.show()
147 157
@@ -151,6 +161,7 @@ def focus_clicked(obj, item=None):
151 161
152 for i in range(5): 162 for i in range(5):
153 bt = Button(win, text="BX Scroller", size_hint_align=FILL_BOTH) 163 bt = Button(win, text="BX Scroller", size_hint_align=FILL_BOTH)
164 bt.callback_focused_add(_obj_focused_cb)
154 bx3.pack_end(bt) 165 bx3.pack_end(bt)
155 bt.show() 166 bt.show()
156 167
@@ -167,6 +178,7 @@ def focus_clicked(obj, item=None):
167 178
168 for i in range(3): 179 for i in range(3):
169 bt = Button(win, text="Layout", size_hint_align=FILL_BOTH) 180 bt = Button(win, text="Layout", size_hint_align=FILL_BOTH)
181 bt.callback_focused_add(_obj_focused_cb)
170 bx2.pack_end(bt) 182 bx2.pack_end(bt)
171 bt.show() 183 bt.show()
172 bx2.focus_custom_chain_prepend(bt) 184 bx2.focus_custom_chain_prepend(bt)
@@ -177,12 +189,14 @@ def focus_clicked(obj, item=None):
177 189
178 bt = Button(win, text="Disable", size_hint_align=FILL_BOTH) 190 bt = Button(win, text="Disable", size_hint_align=FILL_BOTH)
179 bt.callback_clicked_add(lambda b: b.disabled_set(True)) 191 bt.callback_clicked_add(lambda b: b.disabled_set(True))
192 bt.callback_focused_add(_obj_focused_cb)
180 bx2.pack_end(bt) 193 bx2.pack_end(bt)
181 bt.show() 194 bt.show()
182 bx2.focus_custom_chain_prepend(bt) 195 bx2.focus_custom_chain_prepend(bt)
183 196
184 bt2 = Button(win, text="Enable", size_hint_align=FILL_BOTH) 197 bt2 = Button(win, text="Enable", size_hint_align=FILL_BOTH)
185 bt2.callback_clicked_add(lambda b, b1: b1.disabled_set(False), bt) 198 bt2.callback_clicked_add(lambda b, b1: b1.disabled_set(False), bt)
199 bt2.callback_focused_add(_obj_focused_cb)
186 bx2.pack_end(bt2) 200 bx2.pack_end(bt2)
187 bt2.show() 201 bt2.show()
188 bx2.focus_custom_chain_append(bt2) 202 bx2.focus_custom_chain_append(bt2)
@@ -203,6 +217,7 @@ def focus_clicked(obj, item=None):
203 for j in range(1): 217 for j in range(1):
204 for i in range(2): 218 for i in range(2):
205 bt = Button(win, text="Table", size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH) 219 bt = Button(win, text="Table", size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH)
220 bt.callback_focused_add(_obj_focused_cb)
206 tb.pack(bt, i, j, 1, 1) 221 tb.pack(bt, i, j, 1, 1)
207 bt.show() 222 bt.show()
208 223
@@ -216,10 +231,10 @@ def focus_clicked(obj, item=None):
216 tb.show() 231 tb.show()
217 232
218 for j in range(2): 233 for j in range(2):
219 for i in range(1): 234 bt = Button(win, text="Table", size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH)
220 bt = Button(win, text="Table", size_hint_align=FILL_BOTH, size_hint_weight=EXPAND_BOTH) 235 bt.callback_focused_add(_obj_focused_cb)
221 tb.pack(bt, i, j, 1, 1) 236 tb.pack(bt, 0, j, 1, 1)
222 bt.show() 237 bt.show()
223 238
224 239
225 win.show() 240 win.show()