summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-18 23:11:40 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:50 +0200
commit360d966dfa2a9ebe579e77d4f59a1e3b37ead28c (patch)
tree597e0a57914d802c138e687d5945856218cc9295 /libcaja-private
parentc97aca046a4f75e73e5d82a814337eef950efce3 (diff)
downloadcaja-360d966dfa2a9ebe579e77d4f59a1e3b37ead28c.tar.bz2
caja-360d966dfa2a9ebe579e77d4f59a1e3b37ead28c.tar.xz
[lc-p] Use gdk_threads_enter/leave in thumbnail_thread_notify_file_changed
This was supposed to be a change from the GDK_THREADS_* macros. But, the macros weren't there, so we adapt from: thumbnails: don't use GDK_THREADS_* macros http://git.gnome.org/browse/nautilus/commit/?id=8ee5d37f2b4776730247af75a6ce4cebcba4c550&context=12
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-thumbnails.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-thumbnails.c b/libcaja-private/caja-thumbnails.c
index ef62edba..cbb5f7dc 100644
--- a/libcaja-private/caja-thumbnails.c
+++ b/libcaja-private/caja-thumbnails.c
@@ -277,6 +277,8 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
{
CajaFile *file;
+ gdk_threads_enter ();
+
file = caja_file_get_by_uri ((char *) image_uri);
#ifdef DEBUG_THUMBNAILS
g_message ("(Thumbnail Thread) Notifying file changed file:%p uri: %s\n", file, (char*) image_uri);
@@ -292,6 +294,8 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
}
g_free (image_uri);
+ gdk_threads_leave ();
+
return FALSE;
}