aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-04 14:07:16 +0100
committerTed Gould <ted@canonical.com>2009-05-04 14:07:16 +0100
commit22e6abdd0a1bea1ee257da6eeb767228aeff212c (patch)
treedfca37685c8ad45eb1f72a9e19b42c14d786ca0a /tests/test-glib-layout-server.c
parentf1a04e66561c54fc3120239e2ee5a0240ab50656 (diff)
downloadlibdbusmenu-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.c8
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);