From 4c76c7e769f36b770dc62e4bfad9f3ed0ccf0a8b Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 5 Aug 2008 15:06:53 +0300 Subject: [PATCH] Initialize gdk threads and wrap gtk_main in enter/leave --- src/mapper.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5