summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/dialogs/about.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/dialogs/about.c b/gtk/dialogs/about.c
index f29592c97..1f29103ad 100644
--- a/gtk/dialogs/about.c
+++ b/gtk/dialogs/about.c
@@ -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),