diff options
| author | Ted Gould <ted@canonical.com> | 2009-06-26 12:49:52 -0500 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2009-06-26 12:49:52 -0500 |
| commit | fc6e61d8d731b4cfb7f8e3598893b4805807ffe4 (patch) | |
| tree | 33c952feefba51a558b94decd446c81f8eab6ed6 /libdbusmenu-glib/client.c | |
| parent | 290c64793a50ef7b996a558068b2275ced2cceda (diff) | |
| download | libdbusmenu-fc6e61d8d731b4cfb7f8e3598893b4805807ffe4.tar.gz libdbusmenu-fc6e61d8d731b4cfb7f8e3598893b4805807ffe4.tar.bz2 libdbusmenu-fc6e61d8d731b4cfb7f8e3598893b4805807ffe4.zip | |
Add the property of the menuitems to check to see if they're the root node or not. Also set that when the layout is being parsed.
Diffstat (limited to 'libdbusmenu-glib/client.c')
| -rw-r--r-- | libdbusmenu-glib/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index b9a5b90..7319a7f 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -538,6 +538,9 @@ parse_layout_xml(DbusmenuClient * client, xmlNodePtr node, DbusmenuMenuitem * it /* Build a new item */ item = dbusmenu_menuitem_new_with_id(id); + if (parent == NULL) { + dbusmenu_menuitem_set_root(item, TRUE); + } g_signal_emit(G_OBJECT(client), signals[NEW_MENUITEM], 0, item, TRUE); /* Get the properties queued up for this item */ org_freedesktop_dbusmenu_get_properties_async(proxy, id, menuitem_get_properties_cb, item); |
