From 85192572bdfbcbf98cfd04ec4b5d37e1044ac38e Mon Sep 17 00:00:00 2001 From: Kateryna Fesyna Date: Mon, 14 Jul 2014 16:59:48 +0900 Subject: [PATCH] Win: Delete "focused" and "unfocused" signals emission because they duplicate Widgets signals Summary: "focused" and "unfocused" signals are emitted from Win and Widget. This causes signals duplication when window is unfocused. To avoid this duplication, emission of these signals is deleted from the Win. Reviewers: cedric, Hermet, seoz, raster, reutskiy.v.v Subscribers: reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1183 --- src/lib/elm_win.c | 6 ------ src/lib/elm_win.eo | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 80e0ce1..184f442 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -232,8 +232,6 @@ static const char SIG_IOERR[] = "ioerr"; static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed"; static const char SIG_ROTATION_CHANGED[] = "rotation,changed"; static const char SIG_PROFILE_CHANGED[] = "profile,changed"; -static const char SIG_FOCUSED[] = "focused"; -static const char SIG_UNFOCUSED[] = "unfocused"; static const char SIG_WM_ROTATION_CHANGED[] = "wm,rotation,changed"; static const Evas_Smart_Cb_Description _smart_callbacks[] = { @@ -254,8 +252,6 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = { {SIG_INDICATOR_PROP_CHANGED, ""}, {SIG_ROTATION_CHANGED, ""}, {SIG_PROFILE_CHANGED, ""}, - {SIG_FOCUSED, ""}, - {SIG_UNFOCUSED, ""}, {SIG_WM_ROTATION_CHANGED, ""}, {NULL, NULL} }; @@ -939,7 +935,6 @@ _elm_win_focus_in(Ecore_Evas *ee) else elm_widget_focus_restore(obj); evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL); - evas_object_smart_callback_call(obj, SIG_FOCUSED, NULL); sd->focus_highlight.cur.visible = EINA_TRUE; _elm_win_focus_highlight_reconfigure_job_start(sd); if (sd->frame_obj) @@ -966,7 +961,6 @@ _elm_win_focus_out(Ecore_Evas *ee) elm_object_focus_set(obj, EINA_FALSE); _elm_widget_top_win_focused_set(obj, EINA_FALSE); evas_object_smart_callback_call(obj, SIG_FOCUS_OUT, NULL); - evas_object_smart_callback_call(obj, SIG_UNFOCUSED, NULL); sd->focus_highlight.cur.visible = EINA_FALSE; _elm_win_focus_highlight_reconfigure_job_start(sd); if (sd->frame_obj) diff --git a/src/lib/elm_win.eo b/src/lib/elm_win.eo index b2b564f..2648d77 100644 --- a/src/lib/elm_win.eo +++ b/src/lib/elm_win.eo @@ -1335,8 +1335,6 @@ class Elm_Win (Elm_Widget, Elm_Interface_Atspi_Window) indicator,prop,changed; rotation,changed; profile,changed; - focused; - unfocused; wm,rotation,changed; } -- 2.7.4