[nautilus] Remove unnecessary gdk_threads_enter/leave calls
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Remove unnecessary gdk_threads_enter/leave calls
- Date: Thu, 30 Aug 2012 12:49:38 +0000 (UTC)
commit a4ecbd076f82809d6b95c59911b157364f538c8c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Aug 30 08:46:53 2012 -0400
Remove unnecessary gdk_threads_enter/leave calls
Since we don't ever call gdk_threads_init()
eel/eel-canvas.c | 4 ----
libnautilus-private/nautilus-thumbnails.c | 4 ----
2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index bc64353..7470156 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3320,16 +3320,12 @@ idle_handler (gpointer data)
{
EelCanvas *canvas;
- gdk_threads_enter ();
-
canvas = EEL_CANVAS (data);
do_update (canvas);
/* Reset idle id */
canvas->idle_id = 0;
- gdk_threads_leave ();
-
return FALSE;
}
diff --git a/libnautilus-private/nautilus-thumbnails.c b/libnautilus-private/nautilus-thumbnails.c
index c4c43e0..b58de57 100644
--- a/libnautilus-private/nautilus-thumbnails.c
+++ b/libnautilus-private/nautilus-thumbnails.c
@@ -317,8 +317,6 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
{
NautilusFile *file;
- gdk_threads_enter ();
-
file = nautilus_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);
@@ -333,8 +331,6 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
}
g_free (image_uri);
- gdk_threads_leave ();
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]