seoz pushed a commit to branch elementary-1.10.

http://git.enlightenment.org/core/elementary.git/commit/?id=b1df32e61c5f2bade4fd8a07c86b620aa010259f

commit b1df32e61c5f2bade4fd8a07c86b620aa010259f
Author: Kateryna Fesyna <[email protected]>
Date:   Mon Jul 14 16:59:48 2014 +0900

    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
---
 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 f2f5d14..aa6dd66 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 cf8ae74..397d950 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;
    }
 

-- 


Reply via email to