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-client.c | 4 +++- tests/test-glib-layout-server.c | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c index e6fc1ba..bc8eb2c 100644 --- a/tests/test-glib-layout-client.c +++ b/tests/test-glib-layout-client.c @@ -23,7 +23,9 @@ main (int argc, char ** argv) { g_type_init(); - DbusmenuClient * client = dbusmenu_client_new(":1.1", "/org/test"); + g_usleep(10000); + + DbusmenuClient * client = dbusmenu_client_new(":1.0", "/org/test"); g_timeout_add_seconds(2, timer_func, client); 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