aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-properties-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-18 13:06:01 -0500
committerTed Gould <ted@canonical.com>2009-06-18 13:06:01 -0500
commita957c68bedfe0b5cb065590c91a86b829cafd4b3 (patch)
tree299be9d34df9899209b9ed5cff7fb8be9d0f9e89 /tests/test-glib-properties-server.c
parentec5c382624da19a1a83d1e75d21f74778df01f38 (diff)
parent218976c1a5087e745fdc2fb697deb154efd1ca3b (diff)
downloadlibdbusmenu-a957c68bedfe0b5cb065590c91a86b829cafd4b3.tar.gz
libdbusmenu-a957c68bedfe0b5cb065590c91a86b829cafd4b3.tar.bz2
libdbusmenu-a957c68bedfe0b5cb065590c91a86b829cafd4b3.zip
Pulling in the GTK code
Diffstat (limited to 'tests/test-glib-properties-server.c')
-rw-r--r--tests/test-glib-properties-server.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-glib-properties-server.c b/tests/test-glib-properties-server.c
index 477f951..a51ac0c 100644
--- a/tests/test-glib-properties-server.c
+++ b/tests/test-glib-properties-server.c
@@ -40,7 +40,7 @@ layout2menuitem (proplayout_t * layout)
}
}
- g_debug("Layout to menu return: 0x%X", (unsigned int)local);
+ /* g_debug("Layout to menu return: 0x%X", (unsigned int)local); */
return local;
}
@@ -57,7 +57,9 @@ timer_func (gpointer data)
}
g_debug("Updating to Layout %d", layouton);
- dbusmenu_server_set_root(server, layout2menuitem(&layouts[layouton]));
+ DbusmenuMenuitem * mi = layout2menuitem(&layouts[layouton]);
+ dbusmenu_server_set_root(server, mi);
+ g_object_unref(G_OBJECT(mi));
layouton++;
return TRUE;
@@ -78,6 +80,7 @@ main (int argc, char ** argv)
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
+ g_object_unref(G_OBJECT(server));
g_debug("Quiting");
return 0;