diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-12-21 09:12:27 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-12-21 09:12:27 +0000 |
commit | 1f15209ddcf907f57eec2a168418a0a70727150a (patch) | |
tree | 9437b4b7d5ae28515eb2262fafa47c37be8da049 /libsylph | |
parent | ee1788593bb8f61ce3e189e4942211e6d659bd47 (diff) |
changed deprecated gtk_timeout_add() to g_timeout_add(_full)(). Use G_PRIORITY_LOW for long timeout interval.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2764 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsylph/session.c b/libsylph/session.c index 0b52d87e..31525d8b 100644 --- a/libsylph/session.c +++ b/libsylph/session.c @@ -264,7 +264,7 @@ static gint session_connect_cb(SockInfo *sock, gpointer data) session); #ifdef G_OS_WIN32 - session->ping_tag = g_timeout_add(1000, session_ping_cb, session); + session->ping_tag = g_timeout_add_full(G_PRIORITY_LOW, 1000, session_ping_cb, session, NULL); #endif return 0; @@ -325,7 +325,7 @@ void session_set_timeout(Session *session, guint interval) session->timeout_interval = interval; if (interval > 0) session->timeout_tag = - g_timeout_add(interval, session_timeout_cb, session); + g_timeout_add_full(G_PRIORITY_LOW, interval, session_timeout_cb, session, NULL); else session->timeout_tag = 0; } |