From 360d966dfa2a9ebe579e77d4f59a1e3b37ead28c Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Thu, 18 Oct 2012 23:11:40 +0200 Subject: [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 --- libcaja-private/caja-thumbnails.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.1