diff options
author | Ted Gould <ted@gould.cx> | 2010-09-27 20:11:29 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-09-27 20:11:29 -0500 |
commit | 7fa04256d9aac8e1ea2a2982a7b93276fb981fa4 (patch) | |
tree | 69302e6df64bf3017ae3ee53a28ca4b81e30e677 /libdbusmenu-glib | |
parent | ba03e53fb680f3efb84156fa35926fef2ea3b36d (diff) | |
download | libdbusmenu-7fa04256d9aac8e1ea2a2982a7b93276fb981fa4.tar.gz libdbusmenu-7fa04256d9aac8e1ea2a2982a7b93276fb981fa4.tar.bz2 libdbusmenu-7fa04256d9aac8e1ea2a2982a7b93276fb981fa4.zip |
Only flush at the top level
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index ca16c9a..91dc356 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1283,8 +1283,10 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it /* We've got everything built up at this node and reconcilled */ - /* Flush the properties requests */ - get_properties_flush(client); + /* Flush the properties requests if this is the first level */ + if (dbusmenu_menuitem_get_id(parent) == 0) { + get_properties_flush(client); + } /* now it's time to recurse down the tree. */ children = node->children; |