diff options
author | Ted Gould <ted@gould.cx> | 2011-02-14 16:54:25 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-14 16:54:25 -0600 |
commit | 8470e56b0fbc5ddf21100e2e9e4ec38c70c35717 (patch) | |
tree | 8ebdad638f151442fea01b112542fa35da29b16b | |
parent | d65675fb78f9bcf3dd5a991e9de22d24c4cfaac6 (diff) | |
download | libdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.tar.gz libdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.tar.bz2 libdbusmenu-8470e56b0fbc5ddf21100e2e9e4ec38c70c35717.zip |
More explicit function calling
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 2 |
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); |