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 /src/sigstatus.c | |
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 'src/sigstatus.c')
-rw-r--r-- | src/sigstatus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sigstatus.c b/src/sigstatus.c index d4d23723..4f777e7c 100644 --- a/src/sigstatus.c +++ b/src/sigstatus.c @@ -55,7 +55,7 @@ static void do_destroy(GpgmegtkSigStatus hd) { if (!hd->running) { if (hd->timeout_id_valid) { - gtk_timeout_remove(hd->timeout_id); + g_source_remove(hd->timeout_id); hd->timeout_id_valid = 0; } if (hd->mainwindow) { @@ -177,8 +177,8 @@ void gpgmegtk_sig_status_destroy(GpgmegtkSigStatus hd) if (hd) { hd->destroy_pending = 1; if (hd->running && !hd->timeout_id_valid) { - hd->timeout_id = gtk_timeout_add(MY_TIMEOUT, - timeout_cb, hd); + hd->timeout_id = g_timeout_add(MY_TIMEOUT, + timeout_cb, hd); hd->timeout_id_valid = 1; } do_destroy(hd); |