aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-menu-item.h
blob: fc27b7301a9573610d21a22b71fda9e9739feefb (plain)
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

#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;
};

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