aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-25 09:42:39 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-25 09:42:39 +0000
commit1ff05553158408570a7cd548fdcdf4ec7be07f5d (patch)
tree3667621c49e8ba4006ad3fd6e668292b3ffb83cb /src/main.c
parentcd87d5c742ab84c90e4338d46a23f17f9dbf9d2b (diff)
fixed the handling of GDK thread lock.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2258 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
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