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

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