From: Carlos Garcia Campos Date: Wed, 13 Jun 2007 10:49:32 +0000 (+0000) Subject: Redraw view every time we have a new pixbuf. Fixes bug #443587. X-Git-Tag: EVINCE_0_8_2~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1e3ce75ed2f87ad2c242b6f3950b5a13d4aac45c;p=evince.git Redraw view every time we have a new pixbuf. Fixes bug #443587. 2007-06-13 Carlos Garcia Campos * shell/ev-pixbuf-cache.c: (job_finished_cb), (ev_pixbuf_cache_get_pixbuf), (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 pixbuf. Fixes bug #443587. svn path=/branches/gnome-2-18/; revision=2503 --- diff --git a/ChangeLog b/ChangeLog index 58633a66..7c06d845 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_pixbuf), (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 pixbuf. 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 285cae4e..a23b4cf8 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -229,7 +229,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); } @@ -682,6 +681,7 @@ ev_pixbuf_cache_get_pixbuf (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->pixbuf; @@ -701,6 +701,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; @@ -723,6 +724,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; @@ -780,6 +782,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;