diff options
author | Ted Gould <ted@canonical.com> | 2009-06-23 13:16:10 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-06-23 13:16:10 -0500 |
commit | adfef85dda36a1f5f652cc017b85e14194bd0ec6 (patch) | |
tree | c55b0ff3ecd46d787b95e0e183487ecdcb8474fc /tests/test-glib-properties-server.c | |
parent | ec5c382624da19a1a83d1e75d21f74778df01f38 (diff) | |
parent | 9293879744bb732b416c6c57f38808381c282759 (diff) | |
download | libdbusmenu-adfef85dda36a1f5f652cc017b85e14194bd0ec6.tar.gz libdbusmenu-adfef85dda36a1f5f652cc017b85e14194bd0ec6.tar.bz2 libdbusmenu-adfef85dda36a1f5f652cc017b85e14194bd0ec6.zip |
Merging in the dbusdeath branch to get the gtkmenu updates and dbus handling code.
Diffstat (limited to 'tests/test-glib-properties-server.c')
-rw-r--r-- | tests/test-glib-properties-server.c | 7 |
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; |