Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-03-08 20:04:10 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-03-08 20:04:10 (GMT)
commit5788f911e2d0cc2529549e8711e3f2d3d05010ec (patch)
tree84418c3c451a0e8606136c11e4185b8311f5b3de
parent8a7adc25d72197b3d57f1d60d32667377286d004 (diff)
Make sure print job is only run when the print button is clicked. Based on
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
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-window.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8439517..3f9f7bf 100644
--- 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:
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 4c3fcf2..dc96285 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -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;