29
36
#define XFCE_IS_INDICATOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), XFCE_TYPE_INDICATOR_BUTTON))
30
37
#define XFCE_INDICATOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), XFCE_TYPE_INDICATOR_BUTTON, XfceIndicatorButtonClass))
32
typedef struct _XfceIndicatorButton XfceIndicatorButton;
33
typedef struct _XfceIndicatorButtonClass XfceIndicatorButtonClass;
35
struct _XfceIndicatorButton
37
GtkToggleButton __parent__;
40
IndicatorObjectEntry *entry;
47
gulong orig_icon_handler;
53
GtkOrientation panel_orientation;
54
GtkOrientation orientation;
57
struct _XfceIndicatorButtonClass
59
GtkToggleButtonClass __parent__;
62
void xfce_indicator_button_set_label (XfceIndicatorButton *button, GtkLabel *label);
64
void xfce_indicator_button_set_image (XfceIndicatorButton *button, GtkImage *image);
66
void xfce_indicator_button_set_menu (XfceIndicatorButton *button, GtkMenu *menu);
68
GtkWidget *xfce_indicator_button_get_label (XfceIndicatorButton *button);
70
GtkWidget *xfce_indicator_button_get_image (XfceIndicatorButton *button);
72
IndicatorObjectEntry *xfce_indicator_button_get_entry (XfceIndicatorButton *button);
74
IndicatorObject *xfce_indicator_button_get_io (XfceIndicatorButton *button);
76
GtkMenu *xfce_indicator_button_get_menu (XfceIndicatorButton *button);
78
void xfce_indicator_button_set_orientation (XfceIndicatorButton *button,
79
GtkOrientation panel_orientation,
80
GtkOrientation orientation);
82
void xfce_indicator_button_set_size (XfceIndicatorButton *button,
86
GtkWidget *xfce_indicator_button_new (IndicatorObject *io, IndicatorObjectEntry *entry);
39
typedef struct _XfceIndicatorButton XfceIndicatorButton;
40
typedef struct _XfceIndicatorButtonClass XfceIndicatorButtonClass;
43
void xfce_indicator_button_set_label (XfceIndicatorButton *button,
46
void xfce_indicator_button_set_image (XfceIndicatorButton *button,
49
void xfce_indicator_button_set_menu (XfceIndicatorButton *button,
52
IndicatorObjectEntry *xfce_indicator_button_get_entry (XfceIndicatorButton *button);
54
IndicatorObject *xfce_indicator_button_get_io (XfceIndicatorButton *button);
56
const gchar *xfce_indicator_button_get_io_name (XfceIndicatorButton *button);
58
guint xfce_indicator_button_get_pos (XfceIndicatorButton *button);
60
GtkMenu *xfce_indicator_button_get_menu (XfceIndicatorButton *button);
62
gboolean xfce_indicator_button_is_small (XfceIndicatorButton *button);
64
gint xfce_indicator_button_get_button_border (XfceIndicatorButton *button);
66
GtkWidget *xfce_indicator_button_new (IndicatorObject *io,
68
IndicatorObjectEntry *entry,
69
XfcePanelPlugin *plugin,
70
IndicatorConfig *config);
72
void xfce_indicator_button_disconnect_signals (XfceIndicatorButton *button);