diff options
author | Albert Astals <albert.astals@canonical.com> | 2012-10-25 17:19:23 +0200 |
---|---|---|
committer | Albert Astals <albert.astals@canonical.com> | 2012-10-25 17:19:23 +0200 |
commit | fa83f46a8bebb0788f2d92b633c0aabcbcc1db09 (patch) | |
tree | 2e0e66b1f2670fd2cc3ca0f648b1399acbe90fb4 /libdbusmenu-glib | |
parent | c2eb33badf85c0b4550605a1c45d7040304c29bb (diff) | |
download | libdbusmenu-fa83f46a8bebb0788f2d92b633c0aabcbcc1db09.tar.gz libdbusmenu-fa83f46a8bebb0788f2d92b633c0aabcbcc1db09.tar.bz2 libdbusmenu-fa83f46a8bebb0788f2d92b633c0aabcbcc1db09.zip |
null type means standard type
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index de3b2e8..4bb3217 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -2178,7 +2178,7 @@ parse_layout_xml(DbusmenuClient * client, GVariant * layout, DbusmenuMenuitem * g_variant_unref(child_props); old_type = dbusmenu_menuitem_property_get_variant(cs_mi, DBUSMENU_MENUITEM_PROP_TYPE); - if ((old_type == new_type) || (old_type != NULL && new_type != NULL && g_variant_compare(old_type, new_type) == 0)) { + if ((old_type == NULL && new_type == NULL) || (old_type != NULL && new_type != NULL && g_variant_compare(old_type, new_type) == 0)) { // Only recycle the menu item if it's of the same type oldchildren = g_list_remove(oldchildren, cs_mi); childmi = cs_mi; |