source: trunk/third/bonobo/bonobo/bonobo-ui-toolbar-toggle-button-item.h @ 15509

Revision 15509, 2.2 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15508, which included commits to RCS files with non-trunk default branches.
Line 
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
17BEGIN_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
26typedef struct _BonoboUIToolbarToggleButtonItemPrivate BonoboUIToolbarToggleButtonItemPrivate;
27
28typedef struct {
29        BonoboUIToolbarButtonItem parent;
30} BonoboUIToolbarToggleButtonItem;
31
32typedef struct {
33        BonoboUIToolbarButtonItemClass parent_class;
34
35        void (* toggled) (BonoboUIToolbarToggleButtonItem *toggle_button_item);
36} BonoboUIToolbarToggleButtonItemClass;
37
38
39GtkType    bonobo_ui_toolbar_toggle_button_item_get_type   (void);
40void       bonobo_ui_toolbar_toggle_button_item_construct  (BonoboUIToolbarToggleButtonItem *toggle_button_item,
41                                                         GdkPixbuf                     *icon,
42                                                         const char                    *label);
43GtkWidget *bonobo_ui_toolbar_toggle_button_item_new        (GdkPixbuf                     *icon,
44                                                         const char                    *label);
45
46void      bonobo_ui_toolbar_toggle_button_item_set_active  (BonoboUIToolbarToggleButtonItem *item,
47                                                         gboolean                       active);
48gboolean  bonobo_ui_toolbar_toggle_button_item_get_active  (BonoboUIToolbarToggleButtonItem *item);
49
50END_GNOME_DECLS
51
52#endif /* _BONOBO_UI_TOOLBAR_TOGGLE_BUTTON_ITEM_H_ */
Note: See TracBrowser for help on using the repository browser.