Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-06-13 10:48:59 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-06-13 10:48:59 (GMT)
commitbeda935ce80b173f9430de092f5b9d0551bf7196 (patch)
treee5f3371c71492d54bf875d41b661095470fcb126
parentebb867ca4ad3546a46c018fa3581c757af7058b1 (diff)
Redraw view every time we have a new surface. Fixes bug #443587.
2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org> * 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
-rw-r--r--ChangeLog9
-rw-r--r--shell/ev-pixbuf-cache.c5
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b387922..c27b3a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org>
+ * 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 <carlosgc@gnome.org>
+
* libdocument/ev-document.c: (ev_document_info_free):
Fix memory leaks.
diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c
index 2c815c0..20446b1 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;