aboutsummaryrefslogtreecommitdiffstats
path: root/modules/backup-restore
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 /modules/backup-restore
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 'modules/backup-restore')
-rw-r--r--modules/backup-restore/evolution-backup-tool.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/backup-restore/evolution-backup-tool.c b/modules/backup-restore/evolution-backup-tool.c
index 4b8ad9f8cb..3ca07ecea2 100644
--- a/modules/backup-restore/evolution-backup-tool.c
+++ b/modules/backup-restore/evolution-backup-tool.c
@@ -785,8 +785,10 @@ check (const gchar *filename,
}
static gboolean
-pbar_update (GCancellable *cancellable)
+pbar_update (gpointer user_data)
{
+ GCancellable *cancellable = G_CANCELLABLE (user_data);
+
gtk_progress_bar_pulse ((GtkProgressBar *) pbar);
gtk_progress_bar_set_text ((GtkProgressBar *) pbar, txt);
@@ -1070,12 +1072,13 @@ main (gint argc,
exit (result == 0 ? 0 : 1);
}
- if (gui_arg)
- g_timeout_add_full (
- G_PRIORITY_DEFAULT, 50,
- (GSourceFunc) pbar_update,
+ if (gui_arg) {
+ e_named_timeout_add_full (
+ G_PRIORITY_DEFAULT,
+ 50, pbar_update,
g_object_ref (cancellable),
(GDestroyNotify) g_object_unref);
+ }
g_io_scheduler_push_job (
start_job, NULL,