1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-ui-toolbar-toggle-button-item.h |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Ettore Perazzoli |
---|
7 | * |
---|
8 | * Copyright (C) 2000 Helix Code, Inc. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_H_ |
---|
12 | #define _BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_H_ |
---|
13 | |
---|
14 | #include <libgnome/gnome-defs.h> |
---|
15 | #include "bonobo-ui-toolbar-button-item.h" |
---|
16 | |
---|
17 | BEGIN_GNOME_DECLS |
---|
18 | |
---|
19 | #define BONOBO_TYPE_UI_TOOLBAR_TOGGLE_BUTTON_ITEM (bonobo_ui_toolbar_toggle_button_item_get_type ()) |
---|
20 | #define BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM(obj) (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_TOOLBAR_TOGGLE_BUTTON_ITEM, BonoboUIToolbarToggleButtonItem)) |
---|
21 | #define BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_TOOLBAR_TOGGLE_BUTTON_ITEM, BonoboUIToolbarToggleButtonItemClass)) |
---|
22 | #define BONOBO_IS_UI_TOOLBAR_TOGGLE_BUTTON_ITEM(obj) (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_TOGGLE_BUTTON_ITEM)) |
---|
23 | #define BONOBO_IS_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_TOGGLE_BUTTON_ITEM)) |
---|
24 | |
---|
25 | |
---|
26 | typedef struct _BonoboUIToolbarToggleButtonItemPrivate BonoboUIToolbarToggleButtonItemPrivate; |
---|
27 | |
---|
28 | typedef struct { |
---|
29 | BonoboUIToolbarButtonItem parent; |
---|
30 | } BonoboUIToolbarToggleButtonItem; |
---|
31 | |
---|
32 | typedef struct { |
---|
33 | BonoboUIToolbarButtonItemClass parent_class; |
---|
34 | |
---|
35 | void (* toggled) (BonoboUIToolbarToggleButtonItem *toggle_button_item); |
---|
36 | } BonoboUIToolbarToggleButtonItemClass; |
---|
37 | |
---|
38 | |
---|
39 | GtkType bonobo_ui_toolbar_toggle_button_item_get_type (void); |
---|
40 | void bonobo_ui_toolbar_toggle_button_item_construct (BonoboUIToolbarToggleButtonItem *toggle_button_item, |
---|
41 | GdkPixbuf *icon, |
---|
42 | const char *label); |
---|
43 | GtkWidget *bonobo_ui_toolbar_toggle_button_item_new (GdkPixbuf *icon, |
---|
44 | const char *label); |
---|
45 | |
---|
46 | void bonobo_ui_toolbar_toggle_button_item_set_active (BonoboUIToolbarToggleButtonItem *item, |
---|
47 | gboolean active); |
---|
48 | gboolean bonobo_ui_toolbar_toggle_button_item_get_active (BonoboUIToolbarToggleButtonItem *item); |
---|
49 | |
---|
50 | END_GNOME_DECLS |
---|
51 | |
---|
52 | #endif /* _BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_H_ */ |
---|