Blob Blame History Raw
From 871191e108ca5d0b4dc912889b80b595faf0f886 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nelson=20Ben=C3=ADtez=20Le=C3=B3n?= <nbenitezl@gmail.com>
Date: Sun, 2 Dec 2018 14:31:20 +0100
Subject: [PATCH] ev-sidebar-thumbnails: fix criticals in tree view mode

Lots of criticals printed from trying to use icon_view
widget when in tree view mode.

This was a slip over from commit 6480c7039

Fixes #1042
---
 shell/ev-sidebar-thumbnails.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 339769c6..a0a27f75 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -1000,7 +1000,10 @@ thumbnail_job_completed_callback (EvJobThumbnail      *job,
 			    -1);
         cairo_surface_destroy (surface);
 
-        gtk_widget_queue_draw (priv->icon_view);
+	if (ev_sidebar_thumbnails_use_icon_view (sidebar_thumbnails))
+		gtk_widget_queue_draw (priv->icon_view);
+	else
+		gtk_widget_queue_draw (priv->tree_view);
 }
 
 static void
-- 
2.24.1