Commit 871191e1 authored by Nelson Benítez León's avatar Nelson Benítez León Committed by Germán Poo-Caamaño

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 6480c703

Fixes #1042
parent d9973f68
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment