Commit 7db46af4 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

request dialog: show the buttons

parent ac342435
......@@ -161,12 +161,15 @@ _gth_request_dialog_construct (GthRequestDialog *self,
/* Add buttons */
button = gtk_button_new_with_label (cancel_button_text);
button = gtk_button_new_with_mnemonic (cancel_button_text);
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (self),
button,
GTK_RESPONSE_CANCEL);
button = gtk_button_new_with_label (ok_button_text);
button = gtk_button_new_with_mnemonic (ok_button_text);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (self),
button,
GTK_RESPONSE_OK);
......
......@@ -173,6 +173,7 @@ _gtk_yesno_dialog_new (GtkWindow *parent,
/**/
button = gtk_button_new_with_mnemonic (yes_button_text);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (d),
button,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment