From bc0d5d40ed39c92dcdf62ae891a2e99c25237d74 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 29 Oct 2013 14:04:54 -0400 Subject: Bug 710797 - Name all the timeouts added with g_timeout_add() --- addressbook/gui/widgets/e-addressbook-model.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-model.c') diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 1cd13294a0..9f63ca078b 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -821,9 +821,11 @@ e_addressbook_model_stop (EAddressbookModel *model) g_signal_emit (model, signals[STOP_STATE_CHANGED], 0); g_signal_emit (model, signals[STATUS_MESSAGE], 0, message, -1); - if (!model->priv->remove_status_id) + if (model->priv->remove_status_id == 0) { model->priv->remove_status_id = - g_timeout_add_seconds (3, remove_status_cb, model); + e_named_timeout_add_seconds ( + 3, remove_status_cb, model); + } } gboolean -- cgit v1.2.3