1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-ui-toolbar-control-item.c: A special toolbar item for controls. |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Jon K Hellan (hellan@acm.org) |
---|
7 | * |
---|
8 | * Copyright 2000 Jon K Hellan. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_ |
---|
11 | #define _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_ |
---|
12 | |
---|
13 | #include <libgnome/gnome-defs.h> |
---|
14 | #include "bonobo-ui-toolbar-button-item.h" |
---|
15 | #include "bonobo-widget.h" |
---|
16 | |
---|
17 | BEGIN_GNOME_DECLS |
---|
18 | |
---|
19 | #define BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM (bonobo_ui_toolbar_control_item_get_type ()) |
---|
20 | #define BONOBO_UI_TOOLBAR_CONTROL_ITEM(obj) (GTK_CHECK_CAST ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM, BonoboUIToolbarControlItem)) |
---|
21 | #define BONOBO_UI_TOOLBAR_CONTROL_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM, BonoboUIToolbarControlItemClass)) |
---|
22 | #define BONOBO_IS_UI_TOOLBAR_CONTROL_ITEM(obj) (GTK_CHECK_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM)) |
---|
23 | #define BONOBO_IS_UI_TOOLBAR_CONTROL_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_TYPE_UI_TOOLBAR_CONTROL_ITEM)) |
---|
24 | |
---|
25 | typedef enum { |
---|
26 | BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_CONTROL, |
---|
27 | BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_BUTTON, |
---|
28 | BONOBO_UI_TOOLBAR_CONTROL_DISPLAY_NONE |
---|
29 | } BonoboUIToolbarControlDisplay; |
---|
30 | |
---|
31 | typedef struct _BonoboUIToolbarControlItemPrivate BonoboUIToolbarControlItemPrivate; |
---|
32 | |
---|
33 | typedef struct { |
---|
34 | BonoboUIToolbarButtonItem parent; |
---|
35 | |
---|
36 | BonoboUIToolbarControlItemPrivate *priv; |
---|
37 | } BonoboUIToolbarControlItem; |
---|
38 | |
---|
39 | typedef struct { |
---|
40 | BonoboUIToolbarButtonItemClass parent_class; |
---|
41 | } BonoboUIToolbarControlItemClass; |
---|
42 | |
---|
43 | GtkType bonobo_ui_toolbar_control_item_get_type (void); |
---|
44 | GtkWidget *bonobo_ui_toolbar_control_item_new (Bonobo_Control control_ref); |
---|
45 | GtkWidget *bonobo_ui_toolbar_control_item_construct (BonoboUIToolbarControlItem *control_item, |
---|
46 | Bonobo_Control control_ref); |
---|
47 | void bonobo_ui_toolbar_control_item_set_display (BonoboUIToolbarControlItem *item, |
---|
48 | BonoboUIToolbarControlDisplay hdisplay, |
---|
49 | BonoboUIToolbarControlDisplay vdisplay); |
---|
50 | |
---|
51 | END_GNOME_DECLS |
---|
52 | |
---|
53 | #endif /* _BONOBO_UI_TOOLBAR_CONTROL_ITEM_H_ */ |
---|