aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-13 16:31:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-13 20:33:29 +0900
commitdd24c588fadfba97e30bd234ff1008d4ab4bac9e (patch)
tree46d9c4baa752b17a3e9cfec2db846912b693e4de /src/lib/elementary/efl_ui_win.c
parentwin: Add focus events (in, out, object in/out) (diff)
downloadefl-dd24c588fadfba97e30bd234ff1008d4ab4bac9e.tar.gz
win: Add event device,changed
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 10b87a16eb..dd978f2cde 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1803,6 +1803,18 @@ _elm_win_evas_object_focus_out(void *data,
}
static void
+_elm_win_evas_device_changed(void *data,
+ Evas *e EINA_UNUSED,
+ Evas_Object *obj EINA_UNUSED,
+ void *event_info)
+{
+ Eo *device = event_info;
+ Eo *win = data;
+
+ eo_event_callback_call(win, EFL_UI_WIN_EVENT_DEVICE_CHANGED, device);
+}
+
+static void
_deferred_ecore_evas_free(void *data)
{
ecore_evas_free(data);
@@ -2163,6 +2175,8 @@ _efl_ui_win_evas_object_smart_del(Eo *obj, Efl_Ui_Win_Data *sd)
_elm_win_evas_object_focus_in, obj);
evas_object_event_callback_del_full(sd->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT,
_elm_win_evas_object_focus_out, obj);
+ evas_object_event_callback_del_full(sd->evas, EVAS_CALLBACK_DEVICE_CHANGED,
+ _elm_win_evas_device_changed, obj);
eo_event_callback_array_del(sd->evas, _elm_win_evas_forward_callbacks(), obj);
eo_event_callback_array_del(obj, _elm_win_evas_feed_fake_callbacks(), sd->evas);
@@ -4237,6 +4251,8 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
_elm_win_evas_object_focus_in, obj);
evas_object_event_callback_add(sd->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT,
_elm_win_evas_object_focus_out, obj);
+ evas_object_event_callback_add(sd->evas, EVAS_CALLBACK_DEVICE_CHANGED,
+ _elm_win_evas_device_changed, obj);
evas_object_show(sd->edje);