[eog] Set the saved value for the number of copies printed to 1



commit 6e3bd83c946d4a932393acfff47f778843e49331
Author: Michael Wood <michael g wood linux intel com>
Date:   Mon Sep 17 11:34:59 2012 +0100

    Set the saved value for the number of copies printed to 1
    
    This avoids accidentally printing the wrong amount as this value is not
    expected to be restored from previous sessions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623604

 src/eog-print.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-print.c b/src/eog-print.c
index 527a7e7..73f28f5 100644
--- a/src/eog-print.c
+++ b/src/eog-print.c
@@ -513,7 +513,9 @@ eog_print_set_print_settings (GtkPrintSettings *print_settings)
 	if (key_file == NULL) {
 		key_file = g_key_file_new ();
 	}
-
+	/* Override copies settings as we don't want to save
+	 * this for the next time eog is used. */
+	gtk_print_settings_set_n_copies (print_settings, 1);
 	gtk_print_settings_to_key_file (print_settings, key_file, EOG_PRINT_SETTINGS_GROUP);
 	eog_print_save_key_file (key_file);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]