diff options
author | Ted Gould <ted@gould.cx> | 2011-02-23 11:21:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-23 11:21:10 -0600 |
commit | 3887a48a9c3557c396b472f7a8bb95101a025d0d (patch) | |
tree | db012477b2cfb7681886b61c35e102739b714e7f | |
parent | 5eda2e026654bb7d79c30053f60cc2f67171be75 (diff) | |
download | libdbusmenu-3887a48a9c3557c396b472f7a8bb95101a025d0d.tar.gz libdbusmenu-3887a48a9c3557c396b472f7a8bb95101a025d0d.tar.bz2 libdbusmenu-3887a48a9c3557c396b472f7a8bb95101a025d0d.zip |
If there's a singular NULL entry we also want the full list
-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 bc38e24..3c8ff8d 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1274,7 +1274,7 @@ dbusmenu_menuitem_properties_variant (DbusmenuMenuitem * mi, const gchar ** prop GVariant * final_variant = NULL; - if (properties == NULL && g_hash_table_size(priv->properties) > 0) { + if ((properties == NULL || properties[0] == NULL) && g_hash_table_size(priv->properties) > 0) { GVariantBuilder builder; g_variant_builder_init(&builder, G_VARIANT_TYPE_ARRAY); |