From 4c9e7a2d0373cb0268b37250e714ec8a5c9afcdf Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 23 Jun 2022 13:50:20 -0300 Subject: manager: Bring back credentials --- src/core/gcal-manager.c | 14 +++----------- .../calendar-management/gcal-calendar-management-dialog.c | 1 - src/meson.build | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) (limited to 'src') 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 +#include /** * 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); diff --git a/src/gui/calendar-management/gcal-calendar-management-dialog.c b/src/gui/calendar-management/gcal-calendar-management-dialog.c index b480b926..fc11f384 100644 --- a/src/gui/calendar-management/gcal-calendar-management-dialog.c +++ b/src/gui/calendar-management/gcal-calendar-management-dialog.c @@ -28,7 +28,6 @@ #include "gcal-utils.h" #include -#include #include /** diff --git a/src/meson.build b/src/meson.build index 0b58297d..88e62ca6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -3,7 +3,7 @@ src_inc = include_directories('.') gcal_deps = [ libadwaita_dep, gsettings_desktop_schemas_dep, - #libedataserverui_dep, + libedataserverui_dep, libedataserver_dep, libecal_dep, libsoup_dep, -- cgit v1.2.1