Author: post
Date: 2011-04-12 22:56:41 +0200 (Tue, 12 Apr 2011)
New Revision: 3981
Modified:
trunk/src/rs-store.c
Log:
Surround timeout in gdk guards (docs are not quite clear - but better safe....)
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2011-04-12 20:55:19 UTC (rev 3980)
+++ trunk/src/rs-store.c 2011-04-12 20:56:41 UTC (rev 3981)
@@ -534,11 +534,15 @@
static gboolean
delayed_fileload(gpointer data)
{
+ gdk_threads_enter();
RSStore *store = RS_STORE(data);
RS_BLOB* rs = rs_get_blob();
/* Did we arrive here before we are ready for it? */
if (rs->signal == MAIN_SIGNAL_LOADING || rs->signal ==
MAIN_SIGNAL_CANCEL_LOAD)
+ {
+ gdk_threads_leave();
return TRUE;
+ }
if (store->next_file)
{
@@ -549,6 +553,7 @@
g_signal_emit(G_OBJECT(data), signals[THUMB_ACTIVATED_SIGNAL],
0, name);
predict_preload(data, FALSE);
}
+ gdk_threads_leave();
return FALSE;
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit