From: Carlos Garcia Campos Date: Thu, 18 Jan 2007 15:48:08 +0000 (+0000) Subject: Do not draw white background page in presentation mode. X-Git-Tag: EVINCE_0_7_2~87 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0a36202909c5b5d6e015b7d3668ae51dfce30e47;p=evince.git Do not draw white background page in presentation mode. 2007-01-18 Carlos Garcia Campos * 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 --- diff --git a/ChangeLog b/ChangeLog index 0034fa97..002c202f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-18 Carlos Garcia Campos + + * shell/ev-view.c: (ev_view_expose_event), (draw_one_page): + + Do not draw white background page in presentation mode. + 2007-01-16 Jani Monoses * shell/ev-view.c: Remove unused gnome-vfs include. diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 885c11a5..dbabf1cd 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 30ce54a8..13f227e7 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;