]> www.fi.muni.cz Git - evince.git/commitdiff
Do not draw white background page in presentation mode.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 18 Jan 2007 15:48:08 +0000 (15:48 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Thu, 18 Jan 2007 15:48:08 +0000 (15:48 +0000)
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

ChangeLog
shell/ev-pixbuf-cache.c
shell/ev-view.c

index 0034fa9737ff79d2d131339f38b91a97aa6cacad..002c202f809ea0507adf1e3bc35f94cd03c5268a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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. 
+
 2007-01-16  Jani Monoses <jani.monoses@gmail.com>
 
        * shell/ev-view.c: Remove unused gnome-vfs include.
index 885c11a5f3c8d6c4fbf3d8221a4c3f35abbf937b..dbabf1cd639625c841f8b529e26ad101e560c814 100644 (file)
@@ -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;
 }
 
index 30ce54a88b8dede6a79c8cf5a6b6601536fb6dd7..13f227e775dac343ca8550e2dbcc6f5039fb55b7 100644 (file)
@@ -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;