diff options
Diffstat (limited to 'src/extantz/fangWin.c')
-rw-r--r-- | src/extantz/fangWin.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/extantz/fangWin.c b/src/extantz/fangWin.c index c7ec145..e95910c 100644 --- a/src/extantz/fangWin.c +++ b/src/extantz/fangWin.c | |||
@@ -6,7 +6,6 @@ | |||
6 | // Evas style event callback. | 6 | // Evas style event callback. |
7 | static void _cb_mouse_down_elm(void *data, Evas *evas, Evas_Object *obj, void *event_info) | 7 | static void _cb_mouse_down_elm(void *data, Evas *evas, Evas_Object *obj, void *event_info) |
8 | { | 8 | { |
9 | // GLData *gld = data; | ||
10 | Evas_Event_Mouse_Down *ev = event_info; | 9 | Evas_Event_Mouse_Down *ev = event_info; |
11 | 10 | ||
12 | if (1 == ev->button) | 11 | if (1 == ev->button) |
@@ -80,7 +79,6 @@ static void create_handles(Evas_Object *obj) | |||
80 | 79 | ||
81 | Evas_Object *fang_win_add(globals *ourGlobals) | 80 | Evas_Object *fang_win_add(globals *ourGlobals) |
82 | { | 81 | { |
83 | GLData *gld = &ourGlobals->gld; | ||
84 | Evas_Object *win, *bg; | 82 | Evas_Object *win, *bg; |
85 | 83 | ||
86 | // In theory this should create an EWS window, in practice, I'm not seeing any difference. | 84 | // In theory this should create an EWS window, in practice, I'm not seeing any difference. |
@@ -89,7 +87,7 @@ Evas_Object *fang_win_add(globals *ourGlobals) | |||
89 | win = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE); | 87 | win = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE); |
90 | // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets. | 88 | // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets. |
91 | // According to the Elm inlined image window example, this is what's needed to. | 89 | // According to the Elm inlined image window example, this is what's needed to. |
92 | evas_object_event_callback_add(elm_win_inlined_image_object_get(win), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, gld); | 90 | evas_object_event_callback_add(elm_win_inlined_image_object_get(win), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, NULL); |
93 | elm_win_alpha_set(win, EINA_TRUE); | 91 | elm_win_alpha_set(win, EINA_TRUE); |
94 | 92 | ||
95 | // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle. | 93 | // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle. |
@@ -135,9 +133,9 @@ void overlay_add(globals *ourGlobals) | |||
135 | gld->winwin = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE); | 133 | gld->winwin = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE); |
136 | // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets. | 134 | // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets. |
137 | // According to the Elm inlined image window example, this is what's needed to. | 135 | // According to the Elm inlined image window example, this is what's needed to. |
138 | evas_object_event_callback_add(elm_win_inlined_image_object_get(gld->winwin), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, gld); | 136 | evas_object_event_callback_add(elm_win_inlined_image_object_get(gld->winwin), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, NULL); |
139 | // In this code, we are making our own camera, so grab it's input when we are focused. | 137 | // In this code, we are making our own camera, so grab it's input when we are focused. |
140 | cameraAdd(gld->winwin, gld); | 138 | cameraAdd(ourGlobals, gld->winwin); |
141 | 139 | ||
142 | elm_win_alpha_set(gld->winwin, EINA_TRUE); | 140 | elm_win_alpha_set(gld->winwin, EINA_TRUE); |
143 | // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle. | 141 | // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle. |