diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-01-18 15:48:08 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-01-18 15:48:08 (GMT) |
commit | 0a36202909c5b5d6e015b7d3668ae51dfce30e47 (patch) | |
tree | 0dcd8ad5f7235225c1b5b320550a2d7006daf2fa /shell | |
parent | 77fcdc9b30af27a2a43fb926ced18f0558eb949b (diff) |
Do not draw white background page in presentation mode.
2007-01-18 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_expose_event), (draw_one_page):
Do not draw white background page in presentation mode.
svn path=/trunk/; revision=2234
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-pixbuf-cache.c | 2 | ||||
-rw-r--r-- | shell/ev-view.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 885c11a..dbabf1c 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -701,7 +701,7 @@ ev_pixbuf_cache_get_link_mapping (EvPixbufCache *pixbuf_cache, EV_JOB (job_info->job)->finished) { copy_job_to_job_info (EV_JOB_RENDER (job_info->job), job_info, pixbuf_cache); } - + return job_info->link_mapping; } diff --git a/shell/ev-view.c b/shell/ev-view.c index 30ce54a..13f227e 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -1902,9 +1902,7 @@ ev_view_expose_event (GtkWidget *widget, default: break; } - } - - if (view->loading) { + } else if (view->loading) { GdkRectangle area = {0}; area.width = widget->allocation.width; @@ -2859,10 +2857,12 @@ draw_one_page (EvView *view, real_page_area.height -= (border->top + border->bottom); *page_ready = TRUE; - ev_document_misc_paint_one_page (GTK_WIDGET(view)->window, - GTK_WIDGET (view), - page_area, border, - page == current_page); + if (!view->presentation) { + ev_document_misc_paint_one_page (GTK_WIDGET(view)->window, + GTK_WIDGET (view), + page_area, border, + page == current_page); + } if (gdk_rectangle_intersect (&real_page_area, expose_area, &overlap)) { GdkPixbuf *selection_pixbuf = NULL; |