]> www.fi.muni.cz Git - evince.git/commitdiff
Clear gtk print job when job has finished. Fixes bug #447612.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 17 Jun 2007 16:26:47 +0000 (16:26 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 17 Jun 2007 16:26:47 +0000 (16:26 +0000)
2007-06-17  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_clear_print_job):
Clear gtk print job when job has finished. Fixes bug #447612.

svn path=/trunk/; revision=2508

ChangeLog
shell/ev-window.c

index cf696752bc5720ca219fcaec7fbe48bcab91fbe0..2288074aca89e97d7d5e49ac3a47f5a0f5fbc771 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-17  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-window.c: (ev_window_clear_print_job):
+
+       Clear gtk print job when job has finished. Fixes bug #447612.
+       
 2007-06-17  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (ev_window_print_send),
index 95f5777d4e09c19336db7a164354f0c1c799980b..eafdb292ac5c3cd37754474e8b31690174977780 100644 (file)
@@ -2172,6 +2172,11 @@ ev_window_clear_print_job (EvWindow *window)
                g_object_unref (window->priv->print_job);
                window->priv->print_job = NULL;
        }
+
+       if (window->priv->gtk_print_job) {
+               g_object_unref (window->priv->gtk_print_job);
+               window->priv->gtk_print_job = NULL;
+       }
 }
 
 static void