parser

parser — A parser of in-memory GTK menu trees

Stability Level

Unstable, unless otherwise indicated

Synopsis

#include <libdbusmenu-gtk/parser.h>

DbusmenuMenuitem *  dbusmenu_gtk_parse_menu_structure   (GtkWidget *widget);

Description

The parser will take a GTK menu tree and attach it to a Dbusmenu menu tree. Along with setting up all the signals for updates and destruction. The returned item would be the root item of the given tree.

Details

dbusmenu_gtk_parse_menu_structure ()

DbusmenuMenuitem *  dbusmenu_gtk_parse_menu_structure   (GtkWidget *widget);

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 GtkMenuItem or GtkMenuShell to turn into a DbusmenuMenuitem

Returns :

A dbusmenu item representing the menu structure. [transfer full]