aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-14 16:54:25 -0600
committerTed Gould <ted@gould.cx>2011-02-14 16:54:25 -0600
commit8470e56b0fbc5ddf21100e2e9e4ec38c70c35717 (patch)
tree8ebdad638f151442fea01b112542fa35da29b16b
parentd65675fb78f9bcf3dd5a991e9de22d24c4cfaac6 (diff)
downloadlibdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.tar.gz
libdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.tar.bz2
libdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.zip
More explicit function calling
-rw-r--r--libdbusmenu-glib/menuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index 6a33499..da34ff0 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -1361,7 +1361,7 @@ dbusmenu_menuitem_build_variant (DbusmenuMenuitem * mi, const gchar ** propertie
/* Pillage the children */
GList * children = dbusmenu_menuitem_get_children(mi);
if (children == NULL && recurse != 0) {
- g_variant_builder_add_value(&tupleb, g_variant_parse(G_VARIANT_TYPE("a(v)"), "[ ]", NULL, NULL, NULL));
+ g_variant_builder_add_value(&tupleb, g_variant_new_array(G_VARIANT_TYPE_VARIANT, NULL, 0));
} else {
GVariantBuilder childrenbuilder;
g_variant_builder_init(&childrenbuilder, G_VARIANT_TYPE_ARRAY);