From e5c8ce732dc1907f975edd11112a6f0222f70a53 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 23 Dec 2012 11:28:46 +0100 Subject: view: Fix page background rendering while loading origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=38528f9 --- libview/ev-view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libview') diff --git a/libview/ev-view.c b/libview/ev-view.c index 755d4832..a7748b70 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -105,6 +105,7 @@ typedef struct { #define SCROLL_TIME 150 #define EV_STYLE_CLASS_DOCUMENT_PAGE "document-page" +#define EV_STYLE_CLASS_INVERTED "inverted" /*** Scrolling ***/ static void view_update_range_and_current_page (EvView *view); @@ -5801,10 +5802,13 @@ draw_one_page (EvView *view, gtk_style_context_save (context); gtk_style_context_add_class (context, EV_STYLE_CLASS_DOCUMENT_PAGE); + if (ev_document_model_get_inverted_colors (view->model)) + gtk_style_context_add_class (context, EV_STYLE_CLASS_INVERTED); if (view->continuous && page == current_page) gtk_style_context_set_state (context, GTK_STATE_FLAG_ACTIVE); + gtk_render_background (context, cr, page_area->x, page_area->y, page_area->width, page_area->height); gtk_render_frame (context, cr, page_area->x, page_area->y, page_area->width, page_area->height); gtk_style_context_restore (context); -- cgit v1.2.1