summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKateryna Fesyna <k.fesyna@samsung.com>2014-07-14 16:59:48 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-15 01:03:53 +0900
commitb1df32e61c5f2bade4fd8a07c86b620aa010259f (patch)
tree04459b81a846300bb44c8b6985810c5bc2128dc7
parentb06d057e266fcdfbe38a5ba4813aa55603eded49 (diff)
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. @fix Reviewers: cedric, Hermet, seoz, raster, reutskiy.v.v Subscribers: reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1183
-rw-r--r--src/lib/elm_win.c6
-rw-r--r--src/lib/elm_win.eo2
2 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index f2f5d142f..aa6dd6634 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -232,8 +232,6 @@ static const char SIG_IOERR[] = "ioerr";
232static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed"; 232static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed";
233static const char SIG_ROTATION_CHANGED[] = "rotation,changed"; 233static const char SIG_ROTATION_CHANGED[] = "rotation,changed";
234static const char SIG_PROFILE_CHANGED[] = "profile,changed"; 234static const char SIG_PROFILE_CHANGED[] = "profile,changed";
235static const char SIG_FOCUSED[] = "focused";
236static const char SIG_UNFOCUSED[] = "unfocused";
237static const char SIG_WM_ROTATION_CHANGED[] = "wm,rotation,changed"; 235static const char SIG_WM_ROTATION_CHANGED[] = "wm,rotation,changed";
238 236
239static const Evas_Smart_Cb_Description _smart_callbacks[] = { 237static const Evas_Smart_Cb_Description _smart_callbacks[] = {
@@ -254,8 +252,6 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
254 {SIG_INDICATOR_PROP_CHANGED, ""}, 252 {SIG_INDICATOR_PROP_CHANGED, ""},
255 {SIG_ROTATION_CHANGED, ""}, 253 {SIG_ROTATION_CHANGED, ""},
256 {SIG_PROFILE_CHANGED, ""}, 254 {SIG_PROFILE_CHANGED, ""},
257 {SIG_FOCUSED, ""},
258 {SIG_UNFOCUSED, ""},
259 {SIG_WM_ROTATION_CHANGED, ""}, 255 {SIG_WM_ROTATION_CHANGED, ""},
260 {NULL, NULL} 256 {NULL, NULL}
261}; 257};
@@ -939,7 +935,6 @@ _elm_win_focus_in(Ecore_Evas *ee)
939 else 935 else
940 elm_widget_focus_restore(obj); 936 elm_widget_focus_restore(obj);
941 evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL); 937 evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL);
942 evas_object_smart_callback_call(obj, SIG_FOCUSED, NULL);
943 sd->focus_highlight.cur.visible = EINA_TRUE; 938 sd->focus_highlight.cur.visible = EINA_TRUE;
944 _elm_win_focus_highlight_reconfigure_job_start(sd); 939 _elm_win_focus_highlight_reconfigure_job_start(sd);
945 if (sd->frame_obj) 940 if (sd->frame_obj)
@@ -966,7 +961,6 @@ _elm_win_focus_out(Ecore_Evas *ee)
966 elm_object_focus_set(obj, EINA_FALSE); 961 elm_object_focus_set(obj, EINA_FALSE);
967 _elm_widget_top_win_focused_set(obj, EINA_FALSE); 962 _elm_widget_top_win_focused_set(obj, EINA_FALSE);
968 evas_object_smart_callback_call(obj, SIG_FOCUS_OUT, NULL); 963 evas_object_smart_callback_call(obj, SIG_FOCUS_OUT, NULL);
969 evas_object_smart_callback_call(obj, SIG_UNFOCUSED, NULL);
970 sd->focus_highlight.cur.visible = EINA_FALSE; 964 sd->focus_highlight.cur.visible = EINA_FALSE;
971 _elm_win_focus_highlight_reconfigure_job_start(sd); 965 _elm_win_focus_highlight_reconfigure_job_start(sd);
972 if (sd->frame_obj) 966 if (sd->frame_obj)
diff --git a/src/lib/elm_win.eo b/src/lib/elm_win.eo
index cf8ae74d4..397d950b0 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)
1335 indicator,prop,changed; 1335 indicator,prop,changed;
1336 rotation,changed; 1336 rotation,changed;
1337 profile,changed; 1337 profile,changed;
1338 focused;
1339 unfocused;
1340 wm,rotation,changed; 1338 wm,rotation,changed;
1341 } 1339 }
1342 1340