From: Carlos Garcia Campos Date: Sun, 23 Dec 2007 12:27:28 +0000 (+0000) Subject: Disconnect also page-ready signal when removing a job because the page X-Git-Tag: EVINCE_2_21_90~91 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=31bc4d06793e129ce40995a3eaec4fda6beb92f4;p=evince.git Disconnect also page-ready signal when removing a job because the page 2007-12-23 Carlos Garcia Campos * 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 . svn path=/trunk/; revision=2779 --- diff --git a/ChangeLog b/ChangeLog index 3ead0d69..5e494b31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-12-23 Carlos Garcia Campos + + * 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 + . + 2007-12-21 Nickolay V. Shmyrev * 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. diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 46054914..01eda4a1 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -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);