fix close button having default focus

svn path=/trunk/netsurf/; revision=12010
This commit is contained in:
Vincent Sanders 2011-03-13 10:00:44 +00:00
parent 155d8dec3f
commit b3608e3a63
1 changed files with 4 additions and 2 deletions

View File

@ -53,8 +53,6 @@ void nsgtk_about_dialog_init(GtkWindow *parent,
dialog = gtk_dialog_new_with_buttons("About NetSurf",
parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE,
GTK_RESPONSE_NONE,
NULL);
vbox = gtk_vbox_new (FALSE, 8);
@ -97,6 +95,10 @@ void nsgtk_about_dialog_init(GtkWindow *parent,
nsgtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
/* Add the OK button */
gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE);
/* Add the credits button */
button = gtk_button_new_from_stock ("Credits");
gtk_box_pack_end(GTK_BOX (GTK_DIALOG (dialog)->action_area),