[gnome-todo/gnome-3-24] eds: simplify loading code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/gnome-3-24] eds: simplify loading code
- Date: Fri, 5 May 2017 19:53:14 +0000 (UTC)
commit b46db97e770abbc58e7703565994f2965c4c9ef0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri May 5 11:31:22 2017 -0300
eds: simplify loading code
plugins/eds/gtd-provider-eds.c | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/plugins/eds/gtd-provider-eds.c b/plugins/eds/gtd-provider-eds.c
index 1be1fcb..f8ea74e 100644
--- a/plugins/eds/gtd-provider-eds.c
+++ b/plugins/eds/gtd-provider-eds.c
@@ -528,22 +528,6 @@ gtd_provider_eds_load_registry (GtdProviderEds *provider)
e_credentials_prompter_process_awaiting_credentials (priv->credentials_prompter);
}
-static gboolean
-gtd_provider_eds_try_load (GtdProviderEds *provider)
-{
- GtdProviderEdsPrivate *priv = gtd_provider_eds_get_instance_private (provider);
-
- if (gtd_object_get_ready (GTD_OBJECT (provider)))
- {
- gtd_provider_eds_load_registry (provider);
- priv->lazy_load_id = 0;
-
- return G_SOURCE_REMOVE;
- }
-
- return G_SOURCE_CONTINUE;
-}
-
static void
gtd_provider_eds_set_registry (GtdProviderEds *provider,
ESourceRegistry *registry)
@@ -552,9 +536,7 @@ gtd_provider_eds_set_registry (GtdProviderEds *provider,
g_set_object (&priv->source_registry, registry);
- priv->lazy_load_id = g_timeout_add (250,
- (GSourceFunc) gtd_provider_eds_try_load,
- provider);
+ gtd_provider_eds_load_registry (provider);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]