]> www.fi.muni.cz Git - evince.git/commitdiff
Disconnect also page-ready signal when removing a job because the page
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 23 Dec 2007 12:27:28 +0000 (12:27 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 23 Dec 2007 12:27:28 +0000 (12:27 +0000)
2007-12-23  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-pixbuf-cache.c: (check_job_size_and_unref):
Disconnect also page-ready signal when removing a job because the
page size has changed. Thanks to kripken
<kripkensteiner@gmail.com>.

svn path=/trunk/; revision=2779

ChangeLog
shell/ev-pixbuf-cache.c

index 3ead0d6954958b8ca7bbd792e389a69d26959ad7..5e494b313b0cc269a060db47f5a65da200fbcd58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-12-23  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-pixbuf-cache.c: (check_job_size_and_unref):
+
+       Disconnect also page-ready signal when removing a job because the
+       page size has changed. Thanks to kripken
+       <kripkensteiner@gmail.com>.
+       
 2007-12-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * shell/ev-page-action.c: (page_scroll_cb), (create_tool_item):
@@ -24,6 +32,7 @@
        * configure.ac:
        * backend/ps/Makefile.am:
        * backend/ps/ev-spectre.[ch]:
+       
        Use libspectre, if available, for the ps backend. Fixes bugs
        #317106, #499787, #501235, #421879, #445797, #443859 and #486547.
 
index 46054914d141437e4a9f8af0db27ff3e809d3b22..01eda4a10715d79584c61e013362a262b36423f9 100644 (file)
@@ -306,6 +306,9 @@ check_job_size_and_unref (EvPixbufCache *pixbuf_cache,
            height == EV_JOB_RENDER (job_info->job)->target_height)
                return;
 
+       g_signal_handlers_disconnect_by_func (job_info->job,
+                                             G_CALLBACK (job_page_ready_cb),
+                                             pixbuf_cache);
        g_signal_handlers_disconnect_by_func (job_info->job,
                                              G_CALLBACK (job_finished_cb),
                                              pixbuf_cache);