Blame SOURCES/evince-3.28.2-tree-view-warnings.patch

e2f042
From 871191e108ca5d0b4dc912889b80b595faf0f886 Mon Sep 17 00:00:00 2001
e2f042
From: =?UTF-8?q?Nelson=20Ben=C3=ADtez=20Le=C3=B3n?= <nbenitezl@gmail.com>
e2f042
Date: Sun, 2 Dec 2018 14:31:20 +0100
e2f042
Subject: [PATCH] ev-sidebar-thumbnails: fix criticals in tree view mode
e2f042
e2f042
Lots of criticals printed from trying to use icon_view
e2f042
widget when in tree view mode.
e2f042
e2f042
This was a slip over from commit 6480c7039
e2f042
e2f042
Fixes #1042
e2f042
---
e2f042
 shell/ev-sidebar-thumbnails.c | 5 ++++-
e2f042
 1 file changed, 4 insertions(+), 1 deletion(-)
e2f042
e2f042
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
e2f042
index 339769c6..a0a27f75 100644
e2f042
--- a/shell/ev-sidebar-thumbnails.c
e2f042
+++ b/shell/ev-sidebar-thumbnails.c
e2f042
@@ -1000,7 +1000,10 @@ thumbnail_job_completed_callback (EvJobThumbnail      *job,
e2f042
 			    -1);
e2f042
         cairo_surface_destroy (surface);
e2f042
 
e2f042
-        gtk_widget_queue_draw (priv->icon_view);
e2f042
+	if (ev_sidebar_thumbnails_use_icon_view (sidebar_thumbnails))
e2f042
+		gtk_widget_queue_draw (priv->icon_view);
e2f042
+	else
e2f042
+		gtk_widget_queue_draw (priv->tree_view);
e2f042
 }
e2f042
 
e2f042
 static void
e2f042
-- 
e2f042
2.24.1
e2f042