changeset 135:f57ef391f104

For GTK to be thread safe in 2.0 we must call gdk_threads_init().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 21 Oct 2002 04:29:47 +0000
parents caeb52bb5ef4
children 2584a4646b41
files gtk/dw.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Mon Oct 21 00:40:55 2002 +0000
+++ b/gtk/dw.c	Mon Oct 21 04:29:47 2002 +0000
@@ -682,6 +682,9 @@
 	}
 	gtk_set_locale();
 	g_thread_init(NULL);
+#if GTK_MAJOR_VERSION > 1
+	gdk_threads_init();
+#endif
 
 	gtk_init(argc, argv);
 #ifdef USE_IMLIB