aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/parser.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-27 14:12:16 -0600
committerTed Gould <ted@gould.cx>2011-01-27 14:12:16 -0600
commitb3088525e0497a660667dc4069554274e95ec498 (patch)
tree907dd3c614e08e4ab107b44ae3ce7c5ca874c185 /libdbusmenu-gtk/parser.h
parent3393d799cd65efdfea2c882b775e58f15a205844 (diff)
parentdb78a405701a56b3df9359293dd944a5d7b8bbe7 (diff)
downloadlibdbusmenu-b3088525e0497a660667dc4069554274e95ec498.tar.gz
libdbusmenu-b3088525e0497a660667dc4069554274e95ec498.tar.bz2
libdbusmenu-b3088525e0497a660667dc4069554274e95ec498.zip
* Upstream Merge
* Fixing setting toggle to a boolean * Fixing some memory leaks * Fixing signatures in GetChildren * Look for the serializable menuitems and use their build functions * Fix critical message from being printed * Fixing shutdown messages on destruction * Adding a parser * Adding a serializable menu item
Diffstat (limited to 'libdbusmenu-gtk/parser.h')
-rw-r--r--libdbusmenu-gtk/parser.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/parser.h b/libdbusmenu-gtk/parser.h
new file mode 100644
index 0000000..a40d709
--- /dev/null
+++ b/libdbusmenu-gtk/parser.h
@@ -0,0 +1,37 @@
+/*
+Parse to take a set of GTK Menus and turn them into something that can
+be sent over the wire.
+
+Copyright 2011 Canonical Ltd.
+
+Authors:
+ Ted Gould <ted@canonical.com>
+
+This program is free software: you can redistribute it and/or modify it
+under the terms of either or both of the following licenses:
+
+1) the GNU Lesser General Public License version 3, as published by the
+Free Software Foundation; and/or
+2) the GNU Lesser General Public License version 2.1, as published by
+the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranties of
+MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the applicable version of the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of both the GNU Lesser General Public
+License version 3 and version 2.1 along with this program. If not, see
+<http://www.gnu.org/licenses/>
+*/
+
+#ifndef DBUSMENU_GTK_PARSER_H__
+#define DBUSMENU_GTK_PARSER_H__
+
+#include <libdbusmenu-glib/menuitem.h>
+#include <gtk/gtk.h>
+
+DbusmenuMenuitem * dbusmenu_gtk_parse_menu_structure (GtkWidget * widget);
+
+#endif /* DBUSMENU_GTK_PARSER_H__ */