forked from AuroraMiddleware/gtk
gtk/gtkfilechooserdefault.c set alternative button order for overwrite
2008-03-13 Sven Neumann <sven@gimp.org> * gtk/gtkfilechooserdefault.c * gtk/gtkprintunixdialog.c: set alternative button order for overwrite confirmation dialogs (bug #522191). svn path=/trunk/; revision=19866
This commit is contained in:
parent
c59ceab0fc
commit
04466bac87
@ -1,3 +1,9 @@
|
||||
2008-03-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c
|
||||
* gtk/gtkprintunixdialog.c: set alternative button order for
|
||||
overwrite confirmation dialogs (bug #522191).
|
||||
|
||||
2008-03-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gtk/gtkprintunixdialog.c (add_custom_button_to_dialog)
|
||||
|
@ -8093,9 +8093,14 @@ confirm_dialog_should_accept_filename (GtkFileChooserDefault *impl,
|
||||
folder_display_name);
|
||||
|
||||
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
|
||||
add_custom_button_to_dialog (GTK_DIALOG (dialog), _("_Replace"), GTK_STOCK_SAVE_AS, GTK_RESPONSE_ACCEPT);
|
||||
add_custom_button_to_dialog (GTK_DIALOG (dialog), _("_Replace"),
|
||||
GTK_STOCK_SAVE_AS, GTK_RESPONSE_ACCEPT);
|
||||
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
|
||||
GTK_RESPONSE_ACCEPT,
|
||||
GTK_RESPONSE_CANCEL,
|
||||
-1);
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
|
||||
|
||||
|
||||
if (toplevel->group)
|
||||
gtk_window_group_add_window (toplevel->group, GTK_WINDOW (dialog));
|
||||
|
||||
|
@ -365,6 +365,10 @@ overwrite_confirmation_dialog (GtkPrintUnixDialog *print_dialog,
|
||||
_("_Replace"),
|
||||
GTK_STOCK_PRINT,
|
||||
GTK_RESPONSE_ACCEPT);
|
||||
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
|
||||
GTK_RESPONSE_ACCEPT,
|
||||
GTK_RESPONSE_CANCEL,
|
||||
-1);
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
|
||||
GTK_RESPONSE_ACCEPT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user