aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-18 09:13:19 -0600
committerTed Gould <ted@gould.cx>2010-11-18 09:13:19 -0600
commit72da1b32a6a834de66496fbaa6f3c57cac4d4d7a (patch)
tree502922d92dee660f081e42da6cd5c6043903457f
parentf5227142593335542a62a8c7d3c122b8013cfead (diff)
downloadlibdbusmenu-72da1b32a6a834de66496fbaa6f3c57cac4d4d7a.tar.gz
libdbusmenu-72da1b32a6a834de66496fbaa6f3c57cac4d4d7a.tar.bz2
libdbusmenu-72da1b32a6a834de66496fbaa6f3c57cac4d4d7a.zip
Fixing our use of GVariant type strings
-rw-r--r--libdbusmenu-glib/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 629a1be..e0ab2d4 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1221,7 +1221,7 @@ dbusmenu_client_send_event (DbusmenuClient * client, gint id, const gchar * name
}
if (variant == NULL) {
- variant = g_variant_new("i", 0);
+ variant = g_variant_new("(i)", 0);
}
event_data_t * edata = g_new0(event_data_t, 1);
@@ -1235,7 +1235,7 @@ dbusmenu_client_send_event (DbusmenuClient * client, gint id, const gchar * name
g_dbus_proxy_call(priv->menuproxy,
"Event",
- g_variant_new("isvu", id, name, variant, timestamp),
+ g_variant_new("(isvu)", id, name, variant, timestamp),
G_DBUS_CALL_FLAGS_NONE,
1000, /* timeout */
NULL, /* cancellable */
@@ -1303,7 +1303,7 @@ dbusmenu_client_send_about_to_show(DbusmenuClient * client, gint id, void (*cb)(
g_dbus_proxy_call(priv->menuproxy,
"AboutToShow",
- g_variant_new("i", id),
+ g_variant_new("(i)", id),
G_DBUS_CALL_FLAGS_NONE,
-1, /* timeout */
NULL, /* cancellable */
@@ -1540,7 +1540,7 @@ update_layout_cb (GObject * proxy, GAsyncResult * res, gpointer data)
guint rev;
gchar * xml;
- g_variant_get(params, "us", &rev, &xml);
+ g_variant_get(params, "(us)", &rev, &xml);
g_variant_unref(params);
DbusmenuClient * client = DBUSMENU_CLIENT(data);
@@ -1593,7 +1593,7 @@ update_layout (DbusmenuClient * client)
g_dbus_proxy_call(priv->menuproxy,
"GetLayout",
- g_variant_new("i", 0), /* root */
+ g_variant_new("(i)", 0), /* root */
G_DBUS_CALL_FLAGS_NONE,
-1, /* timeout */
priv->layoutcall, /* cancellable */