diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-06-23 13:50:20 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-06-23 13:50:20 -0300 |
commit | 4c9e7a2d0373cb0268b37250e714ec8a5c9afcdf (patch) | |
tree | 8e3a2ca5e7f14641853833e007256f85cd1d9a75 /src/core/gcal-manager.c | |
parent | a67c63ca2d5f0cb5c5bab9d561daab36255ca2df (diff) | |
download | gnome-calendar-4c9e7a2d0373cb0268b37250e714ec8a5c9afcdf.tar.gz |
manager: Bring back credentials
Diffstat (limited to 'src/core/gcal-manager.c')
-rw-r--r-- | src/core/gcal-manager.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/core/gcal-manager.c b/src/core/gcal-manager.c index c594829e..c5c54d36 100644 --- a/src/core/gcal-manager.c +++ b/src/core/gcal-manager.c @@ -26,7 +26,7 @@ #include "gcal-timeline-subscriber.h" #include "gcal-utils.h" -//#include <libedataserverui/libedataserverui.h> +#include <libedataserverui4/libedataserverui4.h> /** * SECTION:gcal-manager @@ -67,7 +67,7 @@ struct _GcalManager GListStore *calendars_model; ESourceRegistry *source_registry; - //ECredentialsPrompter *credentials_prompter; + ECredentialsPrompter *credentials_prompter; GCancellable *async_ops; @@ -437,8 +437,6 @@ on_event_removed (GObject *source_object, GCAL_EXIT; } -#if 0 /* libedataserverui */ - static void show_source_error (const gchar *where, const gchar *what, @@ -581,8 +579,6 @@ source_get_last_credentials_required_arguments_cb (GObject *source_object, GCAL_EXIT; } -#endif /* libedataserverui */ - static void gcal_manager_finalize (GObject *object) { @@ -1260,6 +1256,7 @@ gcal_manager_get_synchronizing (GcalManager *self) void gcal_manager_startup (GcalManager *self) { + ESourceCredentialsProvider *credentials_provider; GList *sources, *l; GError *error = NULL; @@ -1291,9 +1288,6 @@ gcal_manager_startup (GcalManager *self) self, NULL); -#if 0 /* libedataserverui */ - ESourceCredentialsProvider *credentials_provider; - self->credentials_prompter = e_credentials_prompter_new (self->source_registry); /* First disable credentials prompt for all but calendar sources... */ @@ -1358,8 +1352,6 @@ gcal_manager_startup (GcalManager *self) e_credentials_prompter_process_awaiting_credentials (self->credentials_prompter); -#endif /* libedataserverui */ - g_signal_connect_object (self->source_registry, "source-added", G_CALLBACK (load_source), self, G_CONNECT_SWAPPED); g_signal_connect_object (self->source_registry, "source-removed", G_CALLBACK (remove_source), self, G_CONNECT_SWAPPED); g_signal_connect_object (self->source_registry, "source-changed", G_CALLBACK (source_changed), self, G_CONNECT_SWAPPED); |