summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thumbnails.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/thumbnails.c b/thumbnails.c
index a684938..92f2460 100644
--- a/thumbnails.c
+++ b/thumbnails.c
@@ -127,6 +127,7 @@ GdkPixbuf *get_thumbnail(const gchar *filepath) {
gpointer add_thumbs_thread(gpointer data) {
GtkListStore *liststore;
GtkTreeIter iter;
+ GtkTreePath *path;
int n;
GValue value = {0};
GdkPixbuf *pb = NULL;
@@ -153,6 +154,10 @@ gpointer add_thumbs_thread(gpointer data) {
if(pb) {
gtk_list_store_set(liststore, &iter, 0, pb, -1);
+ path = gtk_tree_model_get_path(GTK_TREE_MODEL(liststore), &iter);
+
+ gtk_tree_model_row_changed(GTK_TREE_MODEL(liststore), path, &iter);
+
g_object_unref(pb);
}
gtk_tree_model_iter_next(GTK_TREE_MODEL(liststore), &iter);