forked from enlightenment/efl
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
This commit is contained in:
parent
12cf5047f1
commit
34e2c8ae8a
|
@ -232,8 +232,6 @@ static const char SIG_IOERR[] = "ioerr";
|
||||||
static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed";
|
static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed";
|
||||||
static const char SIG_ROTATION_CHANGED[] = "rotation,changed";
|
static const char SIG_ROTATION_CHANGED[] = "rotation,changed";
|
||||||
static const char SIG_PROFILE_CHANGED[] = "profile,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 char SIG_WM_ROTATION_CHANGED[] = "wm,rotation,changed";
|
||||||
|
|
||||||
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
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_INDICATOR_PROP_CHANGED, ""},
|
||||||
{SIG_ROTATION_CHANGED, ""},
|
{SIG_ROTATION_CHANGED, ""},
|
||||||
{SIG_PROFILE_CHANGED, ""},
|
{SIG_PROFILE_CHANGED, ""},
|
||||||
{SIG_FOCUSED, ""},
|
|
||||||
{SIG_UNFOCUSED, ""},
|
|
||||||
{SIG_WM_ROTATION_CHANGED, ""},
|
{SIG_WM_ROTATION_CHANGED, ""},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -939,7 +935,6 @@ _elm_win_focus_in(Ecore_Evas *ee)
|
||||||
else
|
else
|
||||||
elm_widget_focus_restore(obj);
|
elm_widget_focus_restore(obj);
|
||||||
evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL);
|
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;
|
sd->focus_highlight.cur.visible = EINA_TRUE;
|
||||||
_elm_win_focus_highlight_reconfigure_job_start(sd);
|
_elm_win_focus_highlight_reconfigure_job_start(sd);
|
||||||
if (sd->frame_obj)
|
if (sd->frame_obj)
|
||||||
|
@ -966,7 +961,6 @@ _elm_win_focus_out(Ecore_Evas *ee)
|
||||||
elm_object_focus_set(obj, EINA_FALSE);
|
elm_object_focus_set(obj, EINA_FALSE);
|
||||||
_elm_widget_top_win_focused_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_FOCUS_OUT, NULL);
|
||||||
evas_object_smart_callback_call(obj, SIG_UNFOCUSED, NULL);
|
|
||||||
sd->focus_highlight.cur.visible = EINA_FALSE;
|
sd->focus_highlight.cur.visible = EINA_FALSE;
|
||||||
_elm_win_focus_highlight_reconfigure_job_start(sd);
|
_elm_win_focus_highlight_reconfigure_job_start(sd);
|
||||||
if (sd->frame_obj)
|
if (sd->frame_obj)
|
||||||
|
|
|
@ -1335,8 +1335,6 @@ class Elm_Win (Elm_Widget, Elm_Interface_Atspi_Window)
|
||||||
indicator,prop,changed;
|
indicator,prop,changed;
|
||||||
rotation,changed;
|
rotation,changed;
|
||||||
profile,changed;
|
profile,changed;
|
||||||
focused;
|
|
||||||
unfocused;
|
|
||||||
wm,rotation,changed;
|
wm,rotation,changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue