Commit a4ecbd07 authored by Cosimo Cecchi's avatar Cosimo Cecchi

Remove unnecessary gdk_threads_enter/leave calls

Since we don't ever call gdk_threads_init()
parent ef25261e
...@@ -3320,16 +3320,12 @@ idle_handler (gpointer data) ...@@ -3320,16 +3320,12 @@ idle_handler (gpointer data)
{ {
EelCanvas *canvas; EelCanvas *canvas;
gdk_threads_enter ();
canvas = EEL_CANVAS (data); canvas = EEL_CANVAS (data);
do_update (canvas); do_update (canvas);
/* Reset idle id */ /* Reset idle id */
canvas->idle_id = 0; canvas->idle_id = 0;
gdk_threads_leave ();
return FALSE; return FALSE;
} }
......
...@@ -317,8 +317,6 @@ thumbnail_thread_notify_file_changed (gpointer image_uri) ...@@ -317,8 +317,6 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
{ {
NautilusFile *file; NautilusFile *file;
gdk_threads_enter ();
file = nautilus_file_get_by_uri ((char *) image_uri); file = nautilus_file_get_by_uri ((char *) image_uri);
#ifdef DEBUG_THUMBNAILS #ifdef DEBUG_THUMBNAILS
g_message ("(Thumbnail Thread) Notifying file changed file:%p uri: %s\n", file, (char*) image_uri); 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) ...@@ -333,8 +331,6 @@ thumbnail_thread_notify_file_changed (gpointer image_uri)
} }
g_free (image_uri); g_free (image_uri);
gdk_threads_leave ();
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment