Bonobo API Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# BonoboUIToolbarButtonItem

## Name

BonoboUIToolbarButtonItem -- a bonobo toolbar button item

## Synopsis

    typedef     BonoboUIToolbarButtonItem;
    typedef     BonoboUIToolbarButtonItemClass;
    void        bonobo_ui_toolbar_button_item_construct
                                                (BonoboUIToolbarButtonItem *item,
                                                 GtkButton *button_widget,
                                                 GdkPixbuf *icon,
                                                 const char *label);
    GtkWidget*  bonobo_ui_toolbar_button_item_new
                                                (GdkPixbuf *icon,
                                                 const char *label);
    void        bonobo_ui_toolbar_button_item_set_icon
                                                (BonoboUIToolbarButtonItem *button_item,
                                                 GdkPixbuf *icon);
    void        bonobo_ui_toolbar_button_item_set_label
                                                (BonoboUIToolbarButtonItem *button_item,
                                                 const char *label);
    GtkButton*  bonobo_ui_toolbar_button_item_get_button_widget
                                                (BonoboUIToolbarButtonItem *button_item);

## Description

## Details

### BonoboUIToolbarButtonItem

    typedef struct {
    	BonoboUIToolbarItem parent;

    	BonoboUIToolbarButtonItemPrivate *priv;
    } BonoboUIToolbarButtonItem;

### BonoboUIToolbarButtonItemClass

    typedef struct {
    	BonoboUIToolbarItemClass parent_class;

    	/* Virtual methods */
    	void (* set_icon)       (BonoboUIToolbarButtonItem *button_item,
    				 GdkPixbuf                 *icon);
    	void (* set_label)      (BonoboUIToolbarButtonItem *button_item,
    				 const char                *label);

    	/* Signals.  */
    	void (* clicked)	(BonoboUIToolbarButtonItem *toolbar_button_item);
    	void (* set_want_label) (BonoboUIToolbarButtonItem *toolbar_button_item);
    } BonoboUIToolbarButtonItemClass;

### bonobo_ui_toolbar_button_item_construct ()

    void        bonobo_ui_toolbar_button_item_construct
                                                (BonoboUIToolbarButtonItem *item,
                                                 GtkButton *button_widget,
                                                 GdkPixbuf *icon,
                                                 const char *label);

`item` : |
`button_widget` : |
`icon` : |
`label` : |

### bonobo_ui_toolbar_button_item_new ()

    GtkWidget*  bonobo_ui_toolbar_button_item_new
                                                (GdkPixbuf *icon,
                                                 const char *label);

Create a new toolbar button item.

`icon` : |
`label` : |
Returns : | A pointer to the newly created widget.

### bonobo_ui_toolbar_button_item_set_icon ()

    void        bonobo_ui_toolbar_button_item_set_icon
                                                (BonoboUIToolbarButtonItem *button_item,
                                                 GdkPixbuf *icon);

`button_item` : |
`icon` : |

### bonobo_ui_toolbar_button_item_set_label ()

    void        bonobo_ui_toolbar_button_item_set_label
                                                (BonoboUIToolbarButtonItem *button_item,
                                                 const char *label);

`button_item` : |
`label` : |

### bonobo_ui_toolbar_button_item_get_button_widget ()

    GtkButton*  bonobo_ui_toolbar_button_item_get_button_widget
                                                (BonoboUIToolbarButtonItem *button_item);

`button_item` : |
Returns : |

<<< Previous Page | Home | Up | Next Page >>>
BonoboUIToolbarIcon | BonoboUIToolbarToggleButtonItem