rage - add un/fullscreen on double mouse click.

Test Plan: rage -> "double mouse click"

Reviewers: etrunko, seoz, raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1430
This commit is contained in:
Amitesh Singh 2014-11-29 16:00:56 +09:00 committed by Carsten Haitzler (Rasterman)
parent 27f4784033
commit 9bd2dfbd46
1 changed files with 11 additions and 0 deletions

View File

@ -73,6 +73,15 @@ _cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
static void
_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
Evas_Event_Mouse_Down *m_info = event_info;
if (m_info->flags & EVAS_BUTTON_DOUBLE_CLICK)
elm_win_fullscreen_set(data, !elm_win_fullscreen_get(data));
win_do_play(Evas_Object *win)
@ -357,6 +366,8 @@ win_add(void)
_cb_mouse_move, win);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_IN,
_cb_mouse_move, win);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
_cb_mouse_down, win);
elm_object_part_content_set(inf->lay, "rage.gesture", o);
gesture_init(win, o);
dnd_init(win, o);