evince r2956 - in trunk: . shell



Author: carlosgc
Date: Sat Mar  8 20:04:10 2008
New Revision: 2956
URL: http://svn.gnome.org/viewvc/evince?rev=2956&view=rev

Log:
2008-03-08  Carlos Garcia Campos  <carlosgc gnome org>

	* shell/ev-window.c: (ev_window_print_dialog_response_cb):

	Make sure print job is only run when the print button is
	clicked. Based on patch by Eugen Dedu. Fixes bug #495107.


Modified:
   trunk/ChangeLog
   trunk/shell/ev-window.c

Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c	(original)
+++ trunk/shell/ev-window.c	Sat Mar  8 20:04:10 2008
@@ -2220,7 +2220,8 @@
 	GtkPrintPages  print_pages;
 	const gchar   *file_format;
 	
-	if (response == GTK_RESPONSE_CANCEL) {
+	if (response != GTK_RESPONSE_ACCEPT &&
+	    response != GTK_RESPONSE_APPLY) {
 		gtk_widget_destroy (GTK_WIDGET (dialog));
 		window->priv->print_dialog = NULL;
 



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