From 1ff05553158408570a7cd548fdcdf4ec7be07f5d Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 25 Sep 2009 09:42:39 +0000 Subject: fixed the handling of GDK thread lock. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2258 ee746299-78ed-0310-b773-934348b2243d --- src/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index cb14d223..82937164 100644 --- a/src/main.c +++ b/src/main.c @@ -579,6 +579,15 @@ static gint get_queued_message_num(void) return queue->total; } +#if USE_THREADS +static void event_loop_iteration_func(void) +{ + //g_print("event_loop_iteration_func start\n"); + gtk_main_iteration(); + //g_print("event_loop_iteration_func end\n"); +} +#endif + static void app_init(void) { #if USE_THREADS @@ -591,6 +600,9 @@ static void app_init(void) #endif syl_init(); +#if USE_THREADS + set_event_loop_func(event_loop_iteration_func); +#endif prog_version = PROG_VERSION; #ifdef G_OS_WIN32 -- cgit v1.2.3