aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-proxy-proxy.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-23 13:27:13 -0600
committerTed Gould <ted@gould.cx>2010-11-23 13:27:13 -0600
commite811c4f900545d37aecdf18cbce911ff23e684cd (patch)
tree27214d98dcc3c766bddaaba85f0d8aeef3b3aaa2 /tests/test-glib-proxy-proxy.c
parentc661b1ec2a71c8e78e72db7f72116a205059e292 (diff)
downloadlibdbusmenu-e811c4f900545d37aecdf18cbce911ff23e684cd.tar.gz
libdbusmenu-e811c4f900545d37aecdf18cbce911ff23e684cd.tar.bz2
libdbusmenu-e811c4f900545d37aecdf18cbce911ff23e684cd.zip
Exporting the server before getting the name
Diffstat (limited to 'tests/test-glib-proxy-proxy.c')
-rw-r--r--tests/test-glib-proxy-proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-glib-proxy-proxy.c b/tests/test-glib-proxy-proxy.c
index 38c59e2..8a17ead 100644
--- a/tests/test-glib-proxy-proxy.c
+++ b/tests/test-glib-proxy-proxy.c
@@ -31,7 +31,6 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer user
static void
on_bus (GDBusConnection * connection, const gchar * name, gpointer user_data)
{
- server = dbusmenu_server_new("/org/test");
client = dbusmenu_client_new((gchar *)user_data, "/org/test");
g_signal_connect(client, DBUSMENU_CLIENT_SIGNAL_ROOT_CHANGED, G_CALLBACK(root_changed), server);
@@ -62,6 +61,8 @@ main (int argc, char ** argv)
g_debug("I am '%s' and I'm proxying '%s'", whoami, myproxy);
+ server = dbusmenu_server_new("/org/test");
+
g_bus_own_name(G_BUS_TYPE_SESSION,
whoami,
G_BUS_NAME_OWNER_FLAGS_NONE,