aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-proxy-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-12-08 10:28:41 -0600
committerTed Gould <ted@gould.cx>2010-12-08 10:28:41 -0600
commit19d4f5072d6cd72bab67cbf0d9abe28de99a4b7c (patch)
tree134d6edb6fe8a925680c09ad5f83be3ae8267276 /tests/test-glib-proxy-client.c
parentbdb286fb7bdbf81d63c0c592beb5bbb94e1a82ae (diff)
parent29393d8e8816ac771286a47a854dd96138a4a236 (diff)
downloadlibdbusmenu-19d4f5072d6cd72bab67cbf0d9abe28de99a4b7c.tar.gz
libdbusmenu-19d4f5072d6cd72bab67cbf0d9abe28de99a4b7c.tar.bz2
libdbusmenu-19d4f5072d6cd72bab67cbf0d9abe28de99a4b7c.zip
* Upstream Merge
* Porting from dbus-glib to GDBus * debian/*.install: Changing to be the 0.4 version of the dbusmenu API of all the filenames and paths. * Autogen
Diffstat (limited to 'tests/test-glib-proxy-client.c')
-rw-r--r--tests/test-glib-proxy-client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test-glib-proxy-client.c b/tests/test-glib-proxy-client.c
index 0ae2e20..2e1e2d2 100644
--- a/tests/test-glib-proxy-client.c
+++ b/tests/test-glib-proxy-client.c
@@ -150,10 +150,9 @@ layout_verify_timer (gpointer data)
g_main_loop_quit(mainloop);
}
- GValue value = {0};
- g_value_init(&value, G_TYPE_INT);
- g_value_set_int(&value, 0);
- dbusmenu_menuitem_handle_event(menuroot, "clicked", &value, layouton);
+ GVariant * value = g_variant_new("i", 0);
+ dbusmenu_menuitem_handle_event(menuroot, "clicked", value, layouton);
+ g_variant_unref(value);
return FALSE;
}