diff options
author | Ted Gould <ted@gould.cx> | 2010-12-08 10:28:41 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-12-08 10:28:41 -0600 |
commit | 19d4f5072d6cd72bab67cbf0d9abe28de99a4b7c (patch) | |
tree | 134d6edb6fe8a925680c09ad5f83be3ae8267276 /tests/test-glib-proxy-client.c | |
parent | bdb286fb7bdbf81d63c0c592beb5bbb94e1a82ae (diff) | |
parent | 29393d8e8816ac771286a47a854dd96138a4a236 (diff) | |
download | libdbusmenu-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.c | 7 |
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; } |