Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_dnd_snoop.c Log Message: - formatting =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_dnd_snoop.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_dnd_snoop.c 13 Jul 2006 20:22:57 -0000 1.1 +++ ewl_dnd_snoop.c 13 Jul 2006 20:43:22 -0000 1.2 @@ -29,7 +29,8 @@ test_info(Ewl_Test *test) { test->name = "DND Snoop"; - test->tip = "Watches for Xdnd events and prints information to the console."; + test->tip = "Watches for Xdnd events and prints information " + "to the console."; test->filename = __FILE__; test->func = create_test; test->type = EWL_TEST_TYPE_ADVANCED; @@ -42,12 +43,24 @@ Ewl_Widget *hbox, *scroll, *o; /* Register DND handlers */ - ewl_dnd_enter_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_ENTER, ewl_dnd_snoop_cb_enter, NULL); - ewl_dnd_position_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_POSITION, ewl_dnd_snoop_cb_position, NULL); - ewl_dnd_status_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_STATUS, ewl_dnd_snoop_cb_status, NULL); - ewl_dnd_leave_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_LEAVE, ewl_dnd_snoop_cb_leave, NULL); - ewl_dnd_drop_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_DROP, ewl_dnd_snoop_cb_drop, NULL); - ewl_dnd_finished_handler = ecore_event_handler_add(ECORE_X_EVENT_XDND_FINISHED, ewl_dnd_snoop_cb_finished, NULL); + ewl_dnd_enter_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_ENTER, + ewl_dnd_snoop_cb_enter, NULL); + ewl_dnd_position_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_POSITION, + ewl_dnd_snoop_cb_position, NULL); + ewl_dnd_status_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_STATUS, + ewl_dnd_snoop_cb_status, NULL); + ewl_dnd_leave_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_LEAVE, + ewl_dnd_snoop_cb_leave, NULL); + ewl_dnd_drop_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_DROP, + ewl_dnd_snoop_cb_drop, NULL); + ewl_dnd_finished_handler = ecore_event_handler_add( + ECORE_X_EVENT_XDND_FINISHED, + ewl_dnd_snoop_cb_finished, NULL); scroll = ewl_scrollpane_new(); ewl_container_child_append(EWL_CONTAINER(box), scroll); @@ -111,7 +124,8 @@ printf("\nXdnd Position\n"); printf("\tWindow: %d\nSource: %d\n", event->win, event->source); printf("\tPosition: %d,%d\n", event->position.x, event->position.y); - printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), event->action)); + printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), + event->action)); return 1; } @@ -123,9 +137,12 @@ printf("\nXdnd Status\n"); printf("\tWindow: %d\nTarget: %d\n", event->win, event->target); printf("\tAccepts: %d\n", event->will_accept); - printf("\tRegion: %d,%d %dx%d\n", event->rectangle.x, event->rectangle.y, - event->rectangle.width, event->rectangle.height); - printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), event->action)); + printf("\tRegion: %d,%d %dx%d\n", event->rectangle.x, + event->rectangle.y, + event->rectangle.width, + event->rectangle.height); + printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), + event->action)); return 1; } @@ -146,7 +163,8 @@ printf("\nXdnd Drop\n"); printf("\tWindow: %d\nSource: %d\n", event->win, event->source); - printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), event->action)); + printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), + event->action)); printf("\tPosition: %d,%d\n", event->position.x, event->position.y); return 1; } @@ -159,6 +177,8 @@ printf("\nXdnd Finished\n"); printf("\tWindow: %d\nTarget: %d\n", event->win, event->target); printf("\tCompleted: %d\n", event->completed); - printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), event->action)); + printf("\tAction: %s\n", XGetAtomName(ecore_x_display_get(), + event->action)); return 1; } + ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs