aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-07-06 14:38:34 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-07-06 14:47:31 +0300
commit5eea00ffb68483a30b58af1bf7419260eca85603 (patch)
tree5d39e1fa1e72d671a9d983ed83f996202eb69d46 /legacy/elementary/src/lib/elm_win.c
parentFocus: concentrate focused events in widget (diff)
downloadefl-5eea00ffb68483a30b58af1bf7419260eca85603.tar.gz
Win: fix ABI issue
Even if focus,in/out is deprecated and should be replaced with focused/unfocused, the event has to be triggered.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index b3b15362a5..05ed910b4b 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1080,6 +1080,9 @@ _elm_win_focus_in(Ecore_Evas *ee)
else
elm_widget_focus_restore(obj);
}
+ // FIXME: the event is deprecated but still in use.
+ // Has to be removed in EFL2.0
+ evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL);
eo_do(obj, eo_event_callback_call(ELM_WIDGET_EVENT_FOCUSED, NULL));
sd->focus_highlight.cur.visible = EINA_TRUE;
_elm_win_focus_highlight_reconfigure_job_start(sd);
@@ -1112,6 +1115,9 @@ _elm_win_focus_out(Ecore_Evas *ee)
elm_object_focus_set(obj, EINA_FALSE);
_elm_widget_top_win_focused_set(obj, EINA_FALSE);
+ // FIXME: the event is deprecated but still in use.
+ // Has to be removed in EFL2.0
+ evas_object_smart_callback_call(obj, SIG_FOCUS_OUT, NULL);
eo_do(obj, eo_event_callback_call(ELM_WIDGET_EVENT_UNFOCUSED, NULL));
sd->focus_highlight.cur.visible = EINA_FALSE;
_elm_win_focus_highlight_reconfigure_job_start(sd);