[evince/1042-criticals-printed-on-console-for-each-thumbnail-when-in-tree-view-mode] ev-sidebar-thumbnails: fix criticals in tree view mode



commit b0c9cb61644f292547d7437c5c752e7e734cd848
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Sun Dec 2 14:31:20 2018 +0100

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]