aboutsummaryrefslogtreecommitdiff
path: root/src/update_check.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-29 07:44:13 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-29 07:44:13 +0000
commita306a2ef22991d5d12acc08288a63abb94dedbb0 (patch)
tree6914e64b9bef73b9c7450e6fa3880e331b7e9a3a /src/update_check.c
parent1799ba1a36801a0bc163839bfd9f3c410561d65a (diff)
src/update_check.c: fixed freeze bug on showing dialog.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2323 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/update_check.c')
-rw-r--r--src/update_check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/update_check.c b/src/update_check.c
index 78247151..94cb141d 100644
--- a/src/update_check.c
+++ b/src/update_check.c
@@ -209,6 +209,8 @@ static void update_check_cb(GPid pid, gint status, gpointer data)
g_strfreev(lines);
+ gdk_threads_enter();
+
if (result)
update_dialog(new_ver, show_dialog_always);
else if (show_dialog_always) {
@@ -220,6 +222,8 @@ static void update_check_cb(GPid pid, gint status, gpointer data)
alertpanel_error(_("Couldn't get the version information."));
}
g_free(new_ver);
+
+ gdk_threads_leave();
}
void update_check(gboolean show_dialog_always)