diff options
author | Ted Gould <ted@gould.cx> | 2010-11-17 21:23:27 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-17 21:23:27 -0600 |
commit | aabdcffea6b311cda25ad2937466d65fc4e36381 (patch) | |
tree | f86b33a60c4eb780057adcd4293b2b36d7fd19f2 /tests/test-glib-proxy-client.c | |
parent | 0dea1bb0779b8cddbf631ee80f76d13aa8920ec5 (diff) | |
download | libdbusmenu-aabdcffea6b311cda25ad2937466d65fc4e36381.tar.gz libdbusmenu-aabdcffea6b311cda25ad2937466d65fc4e36381.tar.bz2 libdbusmenu-aabdcffea6b311cda25ad2937466d65fc4e36381.zip |
Moving the GValues over to GVariant
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; } |