## bonobo-window

bonobo-window

## Synopsis

                        BonoboWindowPrivate;
                        BonoboWindow;
                        BonoboWindowClass;
    GtkWidget *         bonobo_window_construct             (BonoboWindow *win,
                                                             BonoboUIContainer *ui_container,
                                                             const char *win_name,
                                                             const char *title);
    GtkWidget *         bonobo_window_new                   (const char *win_name,
                                                             const char *title);
    void                bonobo_window_set_contents          (BonoboWindow *win,
                                                             GtkWidget *contents);
    GtkWidget *         bonobo_window_get_contents          (BonoboWindow *win);
    BonoboUIEngine *    bonobo_window_get_ui_engine         (BonoboWindow *win);
    BonoboUIContainer * bonobo_window_get_ui_container      (BonoboWindow *win);
    void                bonobo_window_set_name              (BonoboWindow *win,
                                                             const char *win_name);
    char *              bonobo_window_get_name              (BonoboWindow *win);
    GtkAccelGroup *     bonobo_window_get_accel_group       (BonoboWindow *win);
    void                bonobo_window_add_popup             (BonoboWindow *win,
                                                             GtkMenu *popup,
                                                             const char *path);
    void                bonobo_window_remove_popup          (BonoboWindow *win,
                                                             const char *path);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkWindow
                                           +----BonoboWindow

## Implemented Interfaces

BonoboWindow implements AtkImplementorIface and GtkBuildable.

## Properties

      "win-name"                 gchar*                : Read / Write / Construct

## Description

## Details

### BonoboWindowPrivate

    typedef struct _BonoboWindowPrivate BonoboWindowPrivate;

### BonoboWindow

    typedef struct _BonoboWindow BonoboWindow;

### BonoboWindowClass

    typedef struct {
    	GtkWindowClass    parent_class;

    	gpointer dummy[4];
    } BonoboWindowClass;

### bonobo_window_construct ()

    GtkWidget *         bonobo_window_construct             (BonoboWindow *win,
                                                             BonoboUIContainer *ui_container,
                                                             const char *win_name,
                                                             const char *title);

Don't use this ever - use construct time properties instead. TODO: Remove this when we are allowed API changes.

`win` : | the window to construct
`ui_container` : |
`win_name` : | the window name
`title` : | the window's title for the title bar
Returns : | a constructed window

### bonobo_window_new ()

    GtkWidget *         bonobo_window_new                   (const char *win_name,
                                                             const char *title);

`win_name` : | the window name
`title` : | the window's title for the title bar
Returns : | a new BonoboWindow

### bonobo_window_set_contents ()

    void                bonobo_window_set_contents          (BonoboWindow *win,
                                                             GtkWidget *contents);

Insert a widget into the main window contents.

`win` : | the bonobo window
`contents` : | the new widget for it to contain.

### bonobo_window_get_contents ()

    GtkWidget *         bonobo_window_get_contents          (BonoboWindow *win);

`win` : | the bonobo window
Returns : | the contained widget

### bonobo_window_get_ui_engine ()

    BonoboUIEngine *    bonobo_window_get_ui_engine         (BonoboWindow *win);

`win` : | the bonobo window
Returns : | the BonoboUIEngine

### bonobo_window_get_ui_container ()

    BonoboUIContainer * bonobo_window_get_ui_container      (BonoboWindow *win);

`win` : | the bonobo window
Returns : | the BonoboUIContainer

### bonobo_window_set_name ()

    void                bonobo_window_set_name              (BonoboWindow *win,
                                                             const char *win_name);

Set the name of the window - used for configuration serialization.

`win` : | the bonobo window
`win_name` : | the window name

### bonobo_window_get_name ()

    char *              bonobo_window_get_name              (BonoboWindow *win);

`win` : | the bonobo window
Returns : | the name of the window

### bonobo_window_get_accel_group ()

    GtkAccelGroup *     bonobo_window_get_accel_group       (BonoboWindow *win);

`win` : | the bonobo window
Returns : | the associated accelerator group for this window

### bonobo_window_add_popup ()

    void                bonobo_window_add_popup             (BonoboWindow *win,
                                                             GtkMenu *popup,
                                                             const char *path);

Add a popup `menu` at `path`

`win` : | the window
`popup` : |
`path` : | the path

### bonobo_window_remove_popup ()

    void                bonobo_window_remove_popup          (BonoboWindow *win,
                                                             const char *path);

Remove the popup at `path`

`win` : | the window
`path` : | the path

## Property Details

### The `"win-name"` property

      "win-name"                 gchar*                : Read / Write / Construct

Name of the window - used for configuration serialization.

Default value: NULL