diff options
author | Ted Gould <ted@gould.cx> | 2010-11-18 14:42:25 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-18 14:42:25 -0600 |
commit | 7380d970e2187af5e153250565d784abbe469bc8 (patch) | |
tree | 859ff5211bca78cc05a134b149bd9e4bfecd52a2 /tests/test-glib-events-client.c | |
parent | c40c70c6cee475ab2bf8d7e6e5804571b25deb9c (diff) | |
download | libdbusmenu-7380d970e2187af5e153250565d784abbe469bc8.tar.gz libdbusmenu-7380d970e2187af5e153250565d784abbe469bc8.tar.bz2 libdbusmenu-7380d970e2187af5e153250565d784abbe469bc8.zip |
Don't unref the variant we send and fix up debugging messages.
Diffstat (limited to 'tests/test-glib-events-client.c')
-rw-r--r-- | tests/test-glib-events-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-glib-events-client.c b/tests/test-glib-events-client.c index ee0b821..2cc5439 100644 --- a/tests/test-glib-events-client.c +++ b/tests/test-glib-events-client.c @@ -47,7 +47,7 @@ event_status (DbusmenuClient * client, DbusmenuMenuitem * item, gchar * name, GV } if (g_variant_get_int32(data) != DATA_VALUE) { - g_debug("Data value pass fail got: %d", g_variant_get_int32(data)); + g_debug("Data value pass fail got: %d", g_variant_get_int32(g_variant_get_child_value(data, 0))); passed = FALSE; g_main_loop_quit(mainloop); return; @@ -96,9 +96,8 @@ layout_updated (DbusmenuClient * client, gpointer user_data) return; } - GVariant * data = g_variant_new("i", DATA_VALUE); + GVariant * data = g_variant_new_int32(DATA_VALUE); dbusmenu_menuitem_handle_event(menuroot, "clicked", data, TIMESTAMP_VALUE); - g_variant_unref(data); return; } @@ -126,6 +125,7 @@ main (int argc, char ** argv) mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); + g_debug("Main loop complete"); g_object_unref(G_OBJECT(client)); if (passed) { |