Author: post
Date: 2010-10-16 17:21:18 +0200 (Sat, 16 Oct 2010)
New Revision: 3565

Modified:
   trunk/src/rs-store.c
Log:
Do thumbnail overlay in gdk main thread - this MAY avoid a crash in 
"gdk_pixbuf_scale".

Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c        2010-10-16 14:32:05 UTC (rev 3564)
+++ trunk/src/rs-store.c        2010-10-16 15:21:18 UTC (rev 3565)
@@ -2441,13 +2441,13 @@
        rs_cache_load_quick(job->filename, &priority, &exported);
 
        /* Update thumbnail */
+       gdk_threads_enter();
        thumbnail_update(pixbuf, pixbuf_clean, priority, exported);
 
        g_assert(pixbuf != NULL);
        g_assert(pixbuf_clean != NULL);
 
        /* Add the new thumbnail to the store */
-       gdk_threads_enter();
        gtk_list_store_set(GTK_LIST_STORE(job->model), &job->iter,
                METADATA_COLUMN, metadata,
                PIXBUF_COLUMN, pixbuf,


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to