diff options
author | Ted Gould <ted@canonical.com> | 2009-05-04 14:07:16 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-04 14:07:16 +0100 |
commit | 22e6abdd0a1bea1ee257da6eeb767228aeff212c (patch) | |
tree | dfca37685c8ad45eb1f72a9e19b42c14d786ca0a /tests/test-glib-layout-server.c | |
parent | f1a04e66561c54fc3120239e2ee5a0240ab50656 (diff) | |
download | libdbusmenu-22e6abdd0a1bea1ee257da6eeb767228aeff212c.tar.gz libdbusmenu-22e6abdd0a1bea1ee257da6eeb767228aeff212c.tar.bz2 libdbusmenu-22e6abdd0a1bea1ee257da6eeb767228aeff212c.zip |
Some timers to get things lined up correctly and other little
cleanups to stop breaking this.
Diffstat (limited to 'tests/test-glib-layout-server.c')
-rw-r--r-- | tests/test-glib-layout-server.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <glib.h> +#include <dbus/dbus.h> +#include <dbus/dbus-glib.h> +#include <dbus/dbus-glib-lowlevel.h> + #include <libdbusmenu-glib/server.h> #include <libdbusmenu-glib/menuitem.h> @@ -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); |