1 /* 2 Parse to take a set of GTK Menus and turn them into something that can 3 be sent over the wire. 4 5 Copyright 2011 Canonical Ltd. 6 7 Authors: 8 Ted Gould <ted@canonical.com> 9 10 This program is free software: you can redistribute it and/or modify it 11 under the terms of either or both of the following licenses: 12 13 1) the GNU Lesser General Public License version 3, as published by the 14 Free Software Foundation; and/or 15 2) the GNU Lesser General Public License version 2.1, as published by 16 the Free Software Foundation. 17 18 This program is distributed in the hope that it will be useful, but 19 WITHOUT ANY WARRANTY; without even the implied warranties of 20 MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR 21 PURPOSE. See the applicable version of the GNU Lesser General Public 22 License for more details. 23 24 You should have received a copy of both the GNU Lesser General Public 25 License version 3 and version 2.1 along with this program. If not, see 26 <http://www.gnu.org/licenses/> 27 */ 28 29 #ifndef DBUSMENU_GTK_PARSER_H__ 30 #define DBUSMENU_GTK_PARSER_H__ 31 32 #include <libdbusmenu-glib/menuitem.h> 33 #include <gtk/gtk.h> 34 35 G_BEGIN_DECLS 36 37 DbusmenuMenuitem * dbusmenu_gtk_parse_menu_structure (GtkWidget * widget); 38 DbusmenuMenuitem * dbusmenu_gtk_parse_get_cached_item (GtkWidget * widget); 39 40 /** 41 SECTION:parser 42 @short_description: A parser of in-memory GTK menu trees 43 @stability: Unstable 44 @include: libdbusmenu-gtk/parser.h 45 46 The parser will take a GTK menu tree and attach it to a Dbusmenu menu 47 tree. Along with setting up all the signals for updates and destruction. 48 The returned item would be the root item of the given tree. 49 */ 50 G_END_DECLS 51 52 #endif /* DBUSMENU_GTK_PARSER_H__ */ 53