Index: src/nautilus-main.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-main.c,v
retrieving revision 1.146
diff -u -p -r1.146 nautilus-main.c
--- src/nautilus-main.c	19 Apr 2005 12:42:48 -0000	1.146
+++ src/nautilus-main.c	8 Aug 2005 14:00:12 -0000
@@ -44,6 +44,7 @@
 #include <gtk/gtkmain.h>
 #include <gtk/gtkiconfactory.h>
 #include <gtk/gtksignal.h>
+#include <gdk/gdk.h>
 #include <libgnome/gnome-i18n.h>
 #include <libgnome/gnome-init.h>
 #include <libgnomeui/gnome-ui-init.h>
@@ -324,6 +325,8 @@ main (int argc, char *argv[])
 
 	g_set_application_name (_("File Manager"));
 	
+	g_thread_init (NULL);
+	gdk_threads_init ();
 	program = gnome_program_init ("nautilus", VERSION,
 				      LIBGNOMEUI_MODULE, argc, argv,
 				      GNOME_PROGRAM_STANDARD_PROPERTIES,
