fix close button having default focus
svn path=/trunk/netsurf/; revision=12010
This commit is contained in:
parent
155d8dec3f
commit
b3608e3a63
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue