Debian Codegraph @

libdbusmenu-gtk/menuitem.h

raw symbols SCIP
1 /*
2 A library to take the object model made consistent by libdbusmenu-glib
3 and visualize it in GTK.
4
5 Copyright 2009 Canonical Ltd.
6
7 Authors:
8 Ted Gould <[email protected]>
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_MENUITEM_H__
30 #define DBUSMENU_GTK_MENUITEM_H__ 1
31
32 #include <glib.h>
33 #include <gdk-pixbuf/gdk-pixbuf.h>
34 #include <libdbusmenu-glib/menuitem.h>
35 #include <gdk/gdk.h>
36 #include <gtk/gtk.h>
37
38 G_BEGIN_DECLS
39
40 gboolean dbusmenu_menuitem_property_set_image (DbusmenuMenuitem * menuitem, const gchar * property, const GdkPixbuf * data);
41 GdkPixbuf * dbusmenu_menuitem_property_get_image (DbusmenuMenuitem * menuitem, const gchar * property);
42
43 gboolean dbusmenu_menuitem_property_set_shortcut (DbusmenuMenuitem * menuitem, guint key, GdkModifierType modifier);
44 gboolean dbusmenu_menuitem_property_set_shortcut_string (DbusmenuMenuitem * menuitem, const gchar * shortcut);
45 gboolean dbusmenu_menuitem_property_set_shortcut_menuitem (DbusmenuMenuitem * menuitem, const GtkMenuItem * gmi);
46 void dbusmenu_menuitem_property_get_shortcut (DbusmenuMenuitem * menuitem, guint * key, GdkModifierType * modifier);
47
48 /**
49 SECTION:menuitem
50 @short_description: Helpers for #DbusmenuMenuitem properties that require a GTK dependency
51 @stability: Unstable
52 @include: libdbusmenu-gtk/menuitem.h
53
54 Some property helpers can't be done without picking up a GTK+
55 dependency. So those sit in libdbusmenu-gtk but have very similar
56 prototypes to the code in libdbusmenu-glib so your code will
57 look consistent, just with the extra depedency.
58 */
59 G_END_DECLS
60
61 #endif