[evince/gnome-3-32] EvPresentationView: don't start render job until realized
- From: Jason Crain <jcrain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-3-32] EvPresentationView: don't start render job until realized
- Date: Sun, 2 Jun 2019 18:56:52 +0000 (UTC)
commit 72f3fd178d90945402571cf3fd12c53002d142ec
Author: Jason Crain <jcrain src gnome org>
Date: Sat Jun 1 21:03:42 2019 -0600
EvPresentationView: don't start render job until realized
"notify::scale-factor" can be signalled before the view is realized,
which can start the render jobs before it has a valid view size. Don't
schedule render jobs until after the view is realized.
Fixes #1177
libview/ev-view-presentation.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 377cc963..012503df 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1459,6 +1459,9 @@ ev_view_presentation_get_property (GObject *object,
static void
ev_view_presentation_notify_scale_factor (EvViewPresentation *pview)
{
+ if (!gtk_widget_get_realized (GTK_WIDGET (pview)))
+ return;
+
ev_view_presentation_update_monitor_geometry (pview);
ev_view_presentation_reset_jobs (pview);
ev_view_presentation_update_current_page (pview, pview->current_page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]