1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*
* Copyright 2012 Canonical Ltd.
*
* Authors: Lars Uebernickel <lars.uebernickel@canonical.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, 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 GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INDICATOR_MENU_ITEM_H
#define INDICATOR_MENU_ITEM_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define INDICATOR_TYPE_MENU_ITEM indicator_menu_item_get_type()
#define INDICATOR_MENU_ITEM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItem))
#define INDICATOR_MENU_ITEM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItemClass))
#define INDICATOR_IS_MENU_ITEM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
INDICATOR_TYPE_MENU_ITEM))
#define INDICATOR_IS_MENU_ITEM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
INDICATOR_TYPE_MENU_ITEM))
#define INDICATOR_MENU_ITEM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItemClass))
typedef struct _IndicatorMenuItem IndicatorMenuItem;
typedef struct _IndicatorMenuItemClass IndicatorMenuItemClass;
typedef struct _IndicatorMenuItemPrivate IndicatorMenuItemPrivate;
struct _IndicatorMenuItem
{
GtkMenuItem parent;
IndicatorMenuItemPrivate *priv;
};
struct _IndicatorMenuItemClass
{
GtkMenuItemClass parent_class;
};
GType indicator_menu_item_get_type (void) G_GNUC_CONST;
IndicatorMenuItem *indicator_menu_item_new (void);
const gchar * indicator_menu_item_get_label (IndicatorMenuItem *self);
void indicator_menu_item_set_label (IndicatorMenuItem *self, const gchar *text);
const gchar * indicator_menu_item_get_right (IndicatorMenuItem *self);
void indicator_menu_item_set_right (IndicatorMenuItem *self, const gchar *text);
gboolean indicator_menu_item_get_right_is_lozenge (IndicatorMenuItem *self);
void indicator_menu_item_set_right_is_lozenge (IndicatorMenuItem *self, gboolean is_lozenge);
const gchar * indicator_menu_item_get_icon_name (IndicatorMenuItem *self);
void indicator_menu_item_set_icon (IndicatorMenuItem *self, GdkPixbuf *icon);
GdkPixbuf * indicator_menu_item_get_icon (IndicatorMenuItem *self);
void indicator_menu_item_set_icon_name (IndicatorMenuItem *self, const gchar *name);
G_END_DECLS
#endif
|