Win: Delete "focused" and "unfocused" signals emission because they duplicate Widgets...
authorKateryna Fesyna <k.fesyna@samsung.com>
Mon, 14 Jul 2014 07:59:48 +0000 (16:59 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 14 Jul 2014 10:30:25 +0000 (19:30 +0900)
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
src/lib/elm_win.eo

index 80e0ce1..184f442 100644 (file)
@@ -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)
index b2b564f..2648d77 100644 (file)
@@ -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;
    }