Goes through the GTK structures and turns them into the appropraite Dbusmenu structures along with setting up all the relationships between the objects.
It also stores the dbusmenu items as a cache on the GTK items so that they'll be reused if necissary.
widget |
A MenuItem or MenuShell to turn into a Menuitem |
A dbusmenu item representing the menu structure |