added alternative button order in Print and Page Setup dialogs.

2007-12-07  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtk/gtkprintunixdialog.c:
	* gtk/gtkpagesetupunixdialog.c: added alternative button order in
	Print and Page Setup dialogs.


svn path=/trunk/; revision=19126
This commit is contained in:
Yevgen Muntyan 2007-12-07 18:05:42 +00:00 committed by Yevgen Muntyan
parent 0578f2dba9
commit 6003bcbd96
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-12-07 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtkprintunixdialog.c:
* gtk/gtkpagesetupunixdialog.c: added alternative button order in
Print and Page Setup dialogs.
2007-12-07 13:16:33 Tim Janik <timj@imendio.com>
* Makefile.decl: skip tests if gdktarget!=x11, since GUI tests need

View File

@ -322,6 +322,10 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_APPLY, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
}

View File

@ -298,6 +298,11 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_PRINT, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_APPLY,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_OK, FALSE);