diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-14 02:46:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-14 02:46:17 +0000 |
commit | 231757c4d5f4ca238089d31d3faedeb5b52a997f (patch) | |
tree | 87dfd1ac38f4c74b22efe1ce736133711eac336c /ui/gtk/color_dlg.c | |
parent | 679ee2e9afd8e92ed3135cb358ddd1c2823c54c8 (diff) |
Use gtk_dialog_set_alternative_button_order() to set the "alternative"
button order (that order is what's used on Windows).
Put the affirmative answer on the right by default.
svn path=/trunk/; revision=49284
Diffstat (limited to 'ui/gtk/color_dlg.c')
-rw-r--r-- | ui/gtk/color_dlg.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ui/gtk/color_dlg.c b/ui/gtk/color_dlg.c index a9726c5a4c..b0920a1c7d 100644 --- a/ui/gtk/color_dlg.c +++ b/ui/gtk/color_dlg.c @@ -991,17 +991,14 @@ color_clear_cb(GtkWidget *widget, gpointer data _U_) { gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(msg_dialog), "This will revert the color settings to global defaults.\n\n" "Are you really sure?"); -#ifndef _WIN32 gtk_dialog_add_button(GTK_DIALOG(msg_dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); gtk_dialog_add_button(GTK_DIALOG(msg_dialog), GTK_STOCK_CLEAR, GTK_RESPONSE_ACCEPT); -#else - gtk_dialog_add_button(GTK_DIALOG(msg_dialog), - GTK_STOCK_CLEAR, GTK_RESPONSE_ACCEPT); - gtk_dialog_add_button(GTK_DIALOG(msg_dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); -#endif + gtk_dialog_set_alternative_button_order(GTK_DIALOG(msg_dialog), + GTK_RESPONSE_ACCEPT, + GTK_RESPONSE_CANCEL, + -1); gtk_dialog_set_default_response(GTK_DIALOG(msg_dialog), GTK_RESPONSE_CANCEL); response = gtk_dialog_run(GTK_DIALOG(msg_dialog)); |