aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-30 02:04:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-10-30 03:22:35 +0800
commitbc0d5d40ed39c92dcdf62ae891a2e99c25237d74 (patch)
treea07763eeaa20602bd4c0620b2fe67c443c52d29c /shell/e-shell-view.c
parentd3e0f96c73dde49acde92f6347b9e362d85e94aa (diff)
downloadgsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.gz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.bz2
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.lz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.xz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.zst
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.zip
Bug 710797 - Name all the timeouts added with g_timeout_add()
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index b7813eacc6..fe9724c46f 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -299,10 +299,13 @@ shell_view_save_state (EShellView *shell_view,
}
static gboolean
-shell_view_state_timeout_cb (EShellView *shell_view)
+shell_view_state_timeout_cb (gpointer user_data)
{
+ EShellView *shell_view;
EActivity *activity;
+ shell_view = E_SHELL_VIEW (user_data);
+
/* If a save is still in progress, check back later. */
if (shell_view->priv->state_save_activity != NULL)
return TRUE;
@@ -1697,8 +1700,8 @@ e_shell_view_set_state_dirty (EShellView *shell_view)
if (shell_view->priv->state_save_timeout_id > 0)
return;
- source_id = g_timeout_add_seconds (
- STATE_SAVE_TIMEOUT_SECONDS, (GSourceFunc)
+ source_id = e_named_timeout_add_seconds (
+ STATE_SAVE_TIMEOUT_SECONDS,
shell_view_state_timeout_cb, shell_view);
shell_view->priv->state_save_timeout_id = source_id;