Method
Gtk.InfoBar.add_button
Declaration [src]
GtkWidget*
gtk_info_bar_add_button (
GtkInfoBar* info_bar,
const char* button_text,
int response_id
)
Description [src]
Adds a button with the given text.
Clicking the button will emit the GtkInfoBar::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.
Parameters
button_text |
const char* |
text of button |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
response_id |
int |
response ID for the button |
Return value
Returns: GtkButton |
|
the |
|
Ownership is not transferred to the caller |