aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-03 12:27:07 -0600
committerTed Gould <ted@gould.cx>2011-03-03 12:27:07 -0600
commit83d4a60eb146ed757e319db6f2e63f905dc342fb (patch)
treeb57e59c214174b94c0d9d5997263dfffc9aac5e6
parent8a849533649f1c71f327ed88961b164bfe23ee89 (diff)
parent02582ed5c9b2504f7ac4e2c907970f1b2ab26e2b (diff)
downloadlibdbusmenu-83d4a60eb146ed757e319db6f2e63f905dc342fb.tar.gz
libdbusmenu-83d4a60eb146ed757e319db6f2e63f905dc342fb.tar.bz2
libdbusmenu-83d4a60eb146ed757e319db6f2e63f905dc342fb.zip
Use proper types on function
-rw-r--r--libdbusmenu-glib/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index fa517f5..ca39ea3 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -509,7 +509,7 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec)
/* If the value has changed we need to signal that on DBus */
if (priv->text_direction != olddir && priv->bus != NULL && priv->dbusobject != NULL) {
GVariantBuilder params;
- g_variant_builder_init(&params, G_VARIANT_TYPE_ARRAY);
+ g_variant_builder_init(&params, G_VARIANT_TYPE_TUPLE);
g_variant_builder_add_value(&params, g_variant_new_string(DBUSMENU_INTERFACE));
GVariant * dict = g_variant_new_dict_entry(g_variant_new_string("TextDirection"), g_variant_new_string(dbusmenu_text_direction_get_nick(priv->text_direction)));
g_variant_builder_add_value(&params, g_variant_new_array(NULL, &dict, 1));
@@ -533,7 +533,7 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec)
/* If the value has changed we need to signal that on DBus */
if (priv->status != instatus && priv->bus != NULL && priv->dbusobject != NULL) {
GVariantBuilder params;
- g_variant_builder_init(&params, G_VARIANT_TYPE_ARRAY);
+ g_variant_builder_init(&params, G_VARIANT_TYPE_TUPLE);
g_variant_builder_add_value(&params, g_variant_new_string(DBUSMENU_INTERFACE));
GVariant * dict = g_variant_new_dict_entry(g_variant_new_string("Status"), g_variant_new_string(dbusmenu_status_get_nick(instatus)));
g_variant_builder_add_value(&params, g_variant_new_array(NULL, &dict, 1));