GTK+ 3 Reference Manual: GtkActionBar

## GtkActionBar GtkActionBar — A box with a centered child |

## Synopsis

    #include <gtk/gtk.h>

    struct              GtkActionBar;
    GtkWidget *         gtk_action_bar_new                  (void);
    void                gtk_action_bar_pack_start           (GtkActionBar *bar,
                                                             GtkWidget *child);
    void                gtk_action_bar_pack_end             (GtkActionBar *bar,
                                                             GtkWidget *child);
    GtkWidget *         gtk_action_bar_get_center_widget    (GtkActionBar *bar);
    void                gtk_action_bar_set_center_widget    (GtkActionBar *bar,
                                                             GtkWidget *center_widget);

## Description

GtkActionBar is similar to a horizontal GtkBox, it allows to place children at the start or the end. In addition, it contains an internal centered box which is centered with respect to the full width of the box, even if the children at either side take up different amounts of space.

## Details

### struct GtkActionBar

    struct GtkActionBar {
      GtkContainer container;
    };

### gtk_action_bar_new ()

    GtkWidget *         gtk_action_bar_new                  (void);

Creates a new GtkActionBar widget.

Returns : | a new GtkActionBar

Since 3.12

### gtk_action_bar_pack_start ()

    void                gtk_action_bar_pack_start           (GtkActionBar *bar,
                                                             GtkWidget *child);

Adds `child` to `box`, packed with reference to the start of the `box`.

`bar` : | A GtkActionBar
`child` : | the GtkWidget to be added to `bar`

Since 3.12

### gtk_action_bar_pack_end ()

    void                gtk_action_bar_pack_end             (GtkActionBar *bar,
                                                             GtkWidget *child);

Adds `child` to `box`, packed with reference to the end of the `box`.

`bar` : | A GtkActionBar
`child` : | the GtkWidget to be added to `bar`

Since 3.12

### gtk_action_bar_get_center_widget ()

    GtkWidget *         gtk_action_bar_get_center_widget    (GtkActionBar *bar);

Retrieves the center box widget of the bar.

`bar` : | a GtkActionBar
Returns : | the center GtkBox. [transfer none]

Since 3.12

### gtk_action_bar_set_center_widget ()

    void                gtk_action_bar_set_center_widget    (GtkActionBar *bar,
                                                             GtkWidget *center_widget);

Sets the center widget for the GtkActionBar.

`bar` : | a GtkActionBar
`center_widget` : | a widget to use for the center. [allow-none]

Since 3.12

## See Also

GtkBox