]> www.fi.muni.cz Git - evince.git/commitdiff
Make sure print job is only run when the print button is clicked. Based on
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 8 Mar 2008 20:04:10 +0000 (20:04 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 8 Mar 2008 20:04:10 +0000 (20:04 +0000)
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.

svn path=/trunk/; revision=2956

ChangeLog
shell/ev-window.c

index 8439517344dbb9b349b949241e68537049ca68a3..3f9f7bf7bb3bf82e92288e11ca47ea1e7edcfad8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+       
 2008-03-03  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/pdf/pdfdocument.evince-backend.in:
index 4c3fcf2397ab7ce4eb64ceb77e5b7b4f72bec9d9..dc96285d79429cb1cf5a42b3cf9ac1cadec61279 100644 (file)
@@ -2220,7 +2220,8 @@ ev_window_print_dialog_response_cb (GtkDialog *dialog,
        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;