#define TESTREPO "/home/milang/MyDocs/.documents/Maps/OpenStreet"
-#define WITH_THREADS 1
-
GtkWidget *map;
static gboolean
GtkWidget *rotate;
RepoData *rd;
-#if WITH_THREADS
-if (!g_thread_supported ()) {
- g_thread_init(NULL);
-}
+g_thread_init(NULL);
+g_type_init();
gdk_threads_init();
-gdk_threads_enter();
-#endif
gtk_init(&argc, &args);
gtk_widget_show_all(GTK_WIDGET(window));
gtk_map_set_center_latlon(map, 60.45, 22.25);
+gtk_range_set_value(GTK_RANGE(zoomer), 8);
gtk_map_set_zoom(map, 8);
+gdk_threads_enter();
gtk_main();
-
-#ifdef WITH_THREADS
gdk_threads_leave();
-#endif
return 0;
}