summaryrefslogtreecommitdiff
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
commitf7915a5e6f38075724d1e1a8b6f24e0c2343f709 (patch)
tree165920980bd416809749faafcfca5810c935bb68
parent3fa516e020eccb8795e064e4edc80ec8eb6da098 (diff)
downloadelementary-f7915a5e6f38075724d1e1a8b6f24e0c2343f709.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.
-rw-r--r--src/lib/elm_win.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index b3b15362a..05ed910b4 100644
--- a/src/lib/elm_win.c
+++ b/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);