summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-15 01:05:39 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-15 01:05:47 +0900
commitf3d0e3c24995a3acf1cb7a8dcaea1daba0812723 (patch)
tree8f78b9c24b16604736d943e62f59981ecf6a0511
parent68c54992fff9f6e21d632d0740c6813149ba4d54 (diff)
test_win_state: changed internal callback function name and splitted a focus callback for a better focus debug.
-rw-r--r--src/bin/test_win_state.c46
1 files changed, 26 insertions, 20 deletions
diff --git a/src/bin/test_win_state.c b/src/bin/test_win_state.c
index 877ce4f28..97965427c 100644
--- a/src/bin/test_win_state.c
+++ b/src/bin/test_win_state.c
@@ -182,12 +182,18 @@ _move_0_0(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED
182} 182}
183 183
184static void 184static void
185my_win_print(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 185_win_state_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
186{ 186{
187 printf("WIN: %s\n", (char *)data); 187 printf("WIN: %s\n", (char *)data);
188} 188}
189 189
190static void 190static void
191_win_state_focus_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
192{
193 printf("WIN FOCUS: %s\n", (char *)data);
194}
195
196static void
191_win_show(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 197_win_show(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
192{ 198{
193 printf("win: show\n"); 199 printf("win: show\n");
@@ -212,25 +218,25 @@ test_win_state(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
212 evas_event_callback_add(evas_object_evas_get(win), EVAS_CALLBACK_CANVAS_FOCUS_OUT, _win_foc_out, NULL); 218 evas_event_callback_add(evas_object_evas_get(win), EVAS_CALLBACK_CANVAS_FOCUS_OUT, _win_foc_out, NULL);
213 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL); 219 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL);
214 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL); 220 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL);
215 evas_object_smart_callback_add(win, "withdrawn", my_win_print, "withdrawn"); 221 evas_object_smart_callback_add(win, "withdrawn", _win_state_print_cb, "withdrawn");
216 evas_object_smart_callback_add(win, "iconified", my_win_print, "iconified"); 222 evas_object_smart_callback_add(win, "iconified", _win_state_print_cb, "iconified");
217 evas_object_smart_callback_add(win, "normal", my_win_print, "normal"); 223 evas_object_smart_callback_add(win, "normal", _win_state_print_cb, "normal");
218 evas_object_smart_callback_add(win, "stick", my_win_print, "stick"); 224 evas_object_smart_callback_add(win, "stick", _win_state_print_cb, "stick");
219 evas_object_smart_callback_add(win, "unstick", my_win_print, "unstick"); 225 evas_object_smart_callback_add(win, "unstick", _win_state_print_cb, "unstick");
220 evas_object_smart_callback_add(win, "fullscreen", my_win_print, "fullscreen"); 226 evas_object_smart_callback_add(win, "fullscreen", _win_state_print_cb, "fullscreen");
221 evas_object_smart_callback_add(win, "unfullscreen", my_win_print, "unfullscreen"); 227 evas_object_smart_callback_add(win, "unfullscreen", _win_state_print_cb, "unfullscreen");
222 evas_object_smart_callback_add(win, "maximized", my_win_print, "maximized"); 228 evas_object_smart_callback_add(win, "maximized", _win_state_print_cb, "maximized");
223 evas_object_smart_callback_add(win, "unmaximized", my_win_print, "unmaximized"); 229 evas_object_smart_callback_add(win, "unmaximized", _win_state_print_cb, "unmaximized");
224 evas_object_smart_callback_add(win, "ioerr", my_win_print, "ioerr"); 230 evas_object_smart_callback_add(win, "ioerr", _win_state_print_cb, "ioerr");
225 evas_object_smart_callback_add(win, "indicator,prop,changed", my_win_print, "indicator,prop,changed"); 231 evas_object_smart_callback_add(win, "indicator,prop,changed", _win_state_print_cb, "indicator,prop,changed");
226 evas_object_smart_callback_add(win, "rotation,changed", my_win_print, "rotation,changed"); 232 evas_object_smart_callback_add(win, "rotation,changed", _win_state_print_cb, "rotation,changed");
227 evas_object_smart_callback_add(win, "profile,changed", my_win_print, "profile,changed"); 233 evas_object_smart_callback_add(win, "profile,changed", _win_state_print_cb, "profile,changed");
228 evas_object_smart_callback_add(win, "focused", my_win_print, "focused"); 234 evas_object_smart_callback_add(win, "focused", _win_state_focus_cb, "focused");
229 evas_object_smart_callback_add(win, "unfocused", my_win_print, "unfocused"); 235 evas_object_smart_callback_add(win, "unfocused", _win_state_focus_cb, "unfocused");
230 evas_object_smart_callback_add(win, "focus,out", my_win_print, "focus,out"); 236 evas_object_smart_callback_add(win, "focus,out", _win_state_focus_cb, "focus,out");
231 evas_object_smart_callback_add(win, "focus,in", my_win_print, "focus,in"); 237 evas_object_smart_callback_add(win, "focus,in", _win_state_focus_cb, "focus,in");
232 evas_object_smart_callback_add(win, "delete,request", my_win_print, "delete,request"); 238 evas_object_smart_callback_add(win, "delete,request", _win_state_print_cb, "delete,request");
233 evas_object_smart_callback_add(win, "wm,rotation,changed", my_win_print, "wm,rotation,changed"); 239 evas_object_smart_callback_add(win, "wm,rotation,changed", _win_state_print_cb, "wm,rotation,changed");
234 elm_win_autodel_set(win, EINA_TRUE); 240 elm_win_autodel_set(win, EINA_TRUE);
235 241
236 bg = elm_bg_add(win); 242 bg = elm_bg_add(win);