Commit b3f49f42 authored by Jonas Hahnfeld's avatar Jonas Hahnfeld Committed by Jose Aliste

view: Redraw ev-view-presentation when setting normal and black mode.

The black and normal mode are the same from the CSS point of view.
The difference is that in the draw function the page is not drawn
in black mode. Hence, we need to explicitly queue a redraw in these
cases. Since setting the white mode add a CSS class, this queues
the redraw for us.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=772390.
parent 10e877d8
...@@ -132,8 +132,8 @@ ev_view_presentation_set_normal (EvViewPresentation *pview) ...@@ -132,8 +132,8 @@ ev_view_presentation_set_normal (EvViewPresentation *pview)
"white-mode"); "white-mode");
#else #else
gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black); gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black);
gtk_widget_queue_draw (widget);
#endif #endif
gtk_widget_queue_draw (widget);
} }
static void static void
...@@ -150,8 +150,8 @@ ev_view_presentation_set_black (EvViewPresentation *pview) ...@@ -150,8 +150,8 @@ ev_view_presentation_set_black (EvViewPresentation *pview)
"white-mode"); "white-mode");
#else #else
gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black); gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black);
gtk_widget_queue_draw (widget);
#endif #endif
gtk_widget_queue_draw (widget);
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment