Method

Gtk.Dialog.add_button

Declaration [src]

GtkWidget*
gtk_dialog_add_button (
  GtkDialog* dialog,
  const char* button_text,
  int response_id
)

Description [src]

Adds a button with the given text.

GTK arranges things so that clicking the button will emit the GtkDialog::response signal with the given response_id. The button is appended to the end of the dialog’s action area. The button widget is returned, but usually you don’t need it.

Parameters

button_text const char*
 

text of button

 The data is owned by the caller of the function
 The string is a NUL terminated UTF-8 string
response_id int
 

response ID for the button

Return value

Returns: GtkWidget

the GtkButton widget that was added

The data is owned by the called function