aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-28 15:39:58 -0500
committerTed Gould <ted@canonical.com>2009-04-28 15:39:58 -0500
commitf7c32c45fc4c9dff6822b10698c7b4d740c92ca0 (patch)
treeabec4296221a0821e70ea12637dff9a0d91727f6 /tests/test-glib-layout-server.c
parentfee7a8e7b7e8a9c1d6d549de1137a85c4a7421db (diff)
downloadlibdbusmenu-f7c32c45fc4c9dff6822b10698c7b4d740c92ca0.tar.gz
libdbusmenu-f7c32c45fc4c9dff6822b10698c7b4d740c92ca0.tar.bz2
libdbusmenu-f7c32c45fc4c9dff6822b10698c7b4d740c92ca0.zip
Messages and slowing down a touch
Diffstat (limited to 'tests/test-glib-layout-server.c')
-rw-r--r--tests/test-glib-layout-server.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-glib-layout-server.c b/tests/test-glib-layout-server.c
index 6ec9b0c..d6f9f3d 100644
--- a/tests/test-glib-layout-server.c
+++ b/tests/test-glib-layout-server.c
@@ -38,8 +38,10 @@ timer_func (gpointer data)
g_main_loop_quit(mainloop);
return FALSE;
}
+ g_debug("Updating to Layout %d", layouton);
- dbusmenu_server_set_root(server, layout2menuitem(&layouts[layouton++]));
+ dbusmenu_server_set_root(server, layout2menuitem(&layouts[layouton]));
+ layouton++;
return TRUE;
}
@@ -52,10 +54,12 @@ main (int argc, char ** argv)
server = dbusmenu_server_new("/org/test");
timer_func(NULL);
- g_timeout_add(100, timer_func, NULL);
+ g_timeout_add(250, timer_func, NULL);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
+ g_debug("Quiting");
+
return 0;
}