From: Carlos Garcia Campos Date: Wed, 13 Jun 2007 10:48:59 +0000 (+0000) Subject: Redraw view every time we have a new surface. Fixes bug #443587. X-Git-Tag: EVINCE_0_9_1~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=beda935ce80b173f9430de092f5b9d0551bf7196;p=evince.git Redraw view every time we have a new surface. Fixes bug #443587. 2007-06-13 Carlos Garcia Campos * shell/ev-pixbuf-cache.c: (job_finished_cb), (ev_pixbuf_cache_get_surface), (ev_pixbuf_cache_get_link_mapping), (ev_pixbuf_cache_get_image_mapping), (ev_pixbuf_cache_get_text_mapping): Redraw view every time we have a new surface. Fixes bug #443587. svn path=/trunk/; revision=2502 --- diff --git a/ChangeLog b/ChangeLog index b387922d..c27b3a1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-06-13 Carlos Garcia Campos + + * shell/ev-pixbuf-cache.c: (job_finished_cb), + (ev_pixbuf_cache_get_surface), (ev_pixbuf_cache_get_link_mapping), + (ev_pixbuf_cache_get_image_mapping), + (ev_pixbuf_cache_get_text_mapping): + + Redraw view every time we have a new surface. Fixes bug #443587. + 2007-06-13 Carlos Garcia Campos * libdocument/ev-document.c: (ev_document_info_free): diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 2c815c09..20446b10 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -233,7 +233,6 @@ job_finished_cb (EvJob *job, job_info = find_job_cache (pixbuf_cache, job_render->rc->page); copy_job_to_job_info (job_render, job_info, pixbuf_cache); - g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0); } @@ -686,6 +685,7 @@ ev_pixbuf_cache_get_surface (EvPixbufCache *pixbuf_cache, if (job_info->job && EV_JOB (job_info->job)->finished) { copy_job_to_job_info (EV_JOB_RENDER (job_info->job), job_info, pixbuf_cache); + g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0); } return job_info->surface; @@ -705,6 +705,7 @@ ev_pixbuf_cache_get_link_mapping (EvPixbufCache *pixbuf_cache, if (job_info->job && EV_JOB (job_info->job)->finished) { copy_job_to_job_info (EV_JOB_RENDER (job_info->job), job_info, pixbuf_cache); + g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0); } return job_info->link_mapping; @@ -727,6 +728,7 @@ ev_pixbuf_cache_get_image_mapping (EvPixbufCache *pixbuf_cache, if (job_info->job && EV_JOB (job_info->job)->finished) { copy_job_to_job_info (EV_JOB_RENDER (job_info->job), job_info, pixbuf_cache); + g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0); } return job_info->image_mapping; @@ -790,6 +792,7 @@ ev_pixbuf_cache_get_text_mapping (EvPixbufCache *pixbuf_cache, if (job_info->job && EV_JOB (job_info->job)->finished) { copy_job_to_job_info (EV_JOB_RENDER (job_info->job), job_info, pixbuf_cache); + g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0); } return job_info->text_mapping;