From: Kaj-Michael Lang Date: Tue, 5 Aug 2008 12:06:53 +0000 (+0300) Subject: Initialize gdk threads and wrap gtk_main in enter/leave X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c76c7e769f36b770dc62e4bfad9f3ed0ccf0a8b;p=mapper Initialize gdk threads and wrap gtk_main in enter/leave --- diff --git a/src/mapper.c b/src/mapper.c index 7511609..4cbf3b6 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -472,6 +472,7 @@ textdomain(GETTEXT_PACKAGE); g_thread_init(NULL); g_type_init(); +gdk_threads_init(); g_set_application_name("Mapper"); #if defined (WITH_GST) gst_init(&argc, &argv); @@ -492,7 +493,9 @@ init_progress=gtk_progress_bar_new(); init_dialog=progress_dialog(NULL, "Mapper is loading...",init_progress); gtk_widget_show_all(init_dialog); g_idle_add((GSourceFunc)mapper_init, NULL); +gdk_threads_enter(); gtk_main(); +gdk_threads_leave(); mapper_destroy(); return 0;