]> git.saurik.com Git - wxWidgets.git/commitdiff
another fix for the default button in the dialog
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Dec 2006 01:21:53 +0000 (01:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Dec 2006 01:21:53 +0000 (01:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/assertdlg_gtk.c

index 36806c1d1386040be0a6d9e6db7ff9fef18e06a8..3b04296303d0772014c2307e8be2bbb378524d81 100644 (file)
@@ -375,10 +375,10 @@ void gtk_assert_dialog_init(GtkAssertDialog *dlg)
 
     /* add the stop button */
     gtk_assert_dialog_add_button (dlg, "_Stop", GTK_STOCK_QUIT, GTK_ASSERT_DIALOG_STOP);
-    gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_ASSERT_DIALOG_CONTINUE);
 
     /* add the continue button */
     continuebtn = gtk_assert_dialog_add_button (dlg, "_Continue", GTK_STOCK_YES, GTK_ASSERT_DIALOG_CONTINUE);
+    gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_ASSERT_DIALOG_CONTINUE);
     g_signal_connect (continuebtn, "clicked", G_CALLBACK(gtk_assert_dialog_continue_callback), dlg);
 
     /* complete creation */