From 22e6abdd0a1bea1ee257da6eeb767228aeff212c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 4 May 2009 14:07:16 +0100 Subject: Some timers to get things lined up correctly and other little cleanups to stop breaking this. --- tests/test-glib-layout-server.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/test-glib-layout-server.c') diff --git a/tests/test-glib-layout-server.c b/tests/test-glib-layout-server.c index d6f9f3d..8539a2b 100644 --- a/tests/test-glib-layout-server.c +++ b/tests/test-glib-layout-server.c @@ -1,6 +1,10 @@ #include +#include +#include +#include + #include #include @@ -51,10 +55,12 @@ main (int argc, char ** argv) { g_type_init(); + g_debug("DBus ID: %s", dbus_connection_get_server_id(dbus_g_connection_get_connection(dbus_g_bus_get(DBUS_BUS_SESSION, NULL)))); + server = dbusmenu_server_new("/org/test"); timer_func(NULL); - g_timeout_add(250, timer_func, NULL); + g_timeout_add(2500, timer_func, NULL); mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); -- cgit v1.2.3