Method

GtkInfoBaradd_button

since: 2.18

Declaration [src]

GtkWidget*
gtk_info_bar_add_button (
  GtkInfoBar* info_bar,
  const gchar* button_text,
  gint response_id
)

Description [src]

Adds a button with the given text and sets things up so that clicking the button will emit the “response” signal with the given response_id. The button is appended to the end of the info bars’s action area. The button widget is returned, but usually you don’t need it.

Available since: 2.18

Parameters

button_text

Type: const gchar*

Text of button.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
response_id

Type: gint

Response ID for the button.

Return value

Type: GtkButton

The GtkButton widget that was added.

The returned data is owned by the instance.