[evince] view: Redraw ev-view-presentation when setting normal and black mode.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] view: Redraw ev-view-presentation when setting normal and black mode.
- Date: Sat, 3 Mar 2018 04:20:11 +0000 (UTC)
commit b3f49f4210410e170a0be3c9162049e74664f500
Author: Jonas Hahnfeld <hahnjo hahnjo de>
Date: Sat Aug 19 20:56:59 2017 +0200
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.
libview/ev-view-presentation.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 0239c93..3450b72 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -132,8 +132,8 @@ ev_view_presentation_set_normal (EvViewPresentation *pview)
"white-mode");
#else
gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black);
- gtk_widget_queue_draw (widget);
#endif
+ gtk_widget_queue_draw (widget);
}
static void
@@ -150,8 +150,8 @@ ev_view_presentation_set_black (EvViewPresentation *pview)
"white-mode");
#else
gdk_window_set_background_rgba (gtk_widget_get_window (widget), &black);
- gtk_widget_queue_draw (widget);
#endif
+ gtk_widget_queue_draw (widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]