[evolution] I#1064 - Hide 'Copy content for offline use' when not used
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1064 - Hide 'Copy content for offline use' when not used
- Date: Wed, 26 Aug 2020 15:05:53 +0000 (UTC)
commit 725a11f86f1796513dc0b1c5b17b226b75760cd5
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 26 17:04:56 2020 +0200
I#1064 - Hide 'Copy content for offline use' when not used
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1064
src/modules/book-config-carddav/evolution-book-config-carddav.c | 3 ---
src/modules/cal-config-caldav/evolution-cal-config-caldav.c | 3 ---
src/modules/cal-config-google/e-cal-config-google.c | 3 ---
src/modules/cal-config-weather/evolution-cal-config-weather.c | 3 ---
src/modules/cal-config-webcal/evolution-cal-config-webcal.c | 3 ---
.../cal-config-webdav-notes/evolution-cal-config-webdav-notes.c | 3 ---
6 files changed, 18 deletions(-)
---
diff --git a/src/modules/book-config-carddav/evolution-book-config-carddav.c
b/src/modules/book-config-carddav/evolution-book-config-carddav.c
index 782c8334c1..97731b9190 100644
--- a/src/modules/book-config-carddav/evolution-book-config-carddav.c
+++ b/src/modules/book-config-carddav/evolution-book-config-carddav.c
@@ -249,9 +249,6 @@ book_config_carddav_insert_widgets (ESourceConfigBackend *backend,
G_OBJECT (backend), uid, context,
(GDestroyNotify) book_config_carddav_context_free);
- e_book_source_config_add_offline_toggle (
- E_BOOK_SOURCE_CONFIG (config), scratch_source);
-
extension_name = E_SOURCE_EXTENSION_WEBDAV_BACKEND;
extension = e_source_get_extension (scratch_source, extension_name);
diff --git a/src/modules/cal-config-caldav/evolution-cal-config-caldav.c
b/src/modules/cal-config-caldav/evolution-cal-config-caldav.c
index 340c557828..ca865813d4 100644
--- a/src/modules/cal-config-caldav/evolution-cal-config-caldav.c
+++ b/src/modules/cal-config-caldav/evolution-cal-config-caldav.c
@@ -293,9 +293,6 @@ cal_config_caldav_insert_widgets (ESourceConfigBackend *backend,
config = e_source_config_backend_get_config (backend);
collection_source = e_source_config_get_collection_source (config);
- e_cal_source_config_add_offline_toggle (
- E_CAL_SOURCE_CONFIG (config), scratch_source);
-
uid = e_source_get_uid (scratch_source);
context = cal_config_caldav_context_new (backend, scratch_source);
diff --git a/src/modules/cal-config-google/e-cal-config-google.c
b/src/modules/cal-config-google/e-cal-config-google.c
index 70781a7a94..ede4d8a495 100644
--- a/src/modules/cal-config-google/e-cal-config-google.c
+++ b/src/modules/cal-config-google/e-cal-config-google.c
@@ -88,9 +88,6 @@ cal_config_google_insert_widgets (ESourceConfigBackend *backend,
G_OBJECT (backend), uid, context,
(GDestroyNotify) cal_config_google_context_free);
- e_cal_source_config_add_offline_toggle (
- E_CAL_SOURCE_CONFIG (config), scratch_source);
-
context->user_entry = g_object_ref (e_source_config_add_user_entry (config, scratch_source));
widget = e_google_chooser_button_new (scratch_source, config);
diff --git a/src/modules/cal-config-weather/evolution-cal-config-weather.c
b/src/modules/cal-config-weather/evolution-cal-config-weather.c
index 665019e3c3..6e813fe05e 100644
--- a/src/modules/cal-config-weather/evolution-cal-config-weather.c
+++ b/src/modules/cal-config-weather/evolution-cal-config-weather.c
@@ -241,9 +241,6 @@ cal_config_weather_insert_widgets (ESourceConfigBackend *backend,
world = gweather_location_get_world ();
- e_cal_source_config_add_offline_toggle (
- E_CAL_SOURCE_CONFIG (config), scratch_source);
-
widget = gweather_location_entry_new (world);
e_source_config_insert_widget (
config, scratch_source, _("Location:"), widget);
diff --git a/src/modules/cal-config-webcal/evolution-cal-config-webcal.c
b/src/modules/cal-config-webcal/evolution-cal-config-webcal.c
index 6d2184bb40..8a9f39d41b 100644
--- a/src/modules/cal-config-webcal/evolution-cal-config-webcal.c
+++ b/src/modules/cal-config-webcal/evolution-cal-config-webcal.c
@@ -134,9 +134,6 @@ cal_config_webcal_insert_widgets (ESourceConfigBackend *backend,
G_OBJECT (backend), uid, context,
(GDestroyNotify) cal_config_webcal_context_free);
- e_cal_source_config_add_offline_toggle (
- E_CAL_SOURCE_CONFIG (config), scratch_source);
-
if (e_source_config_get_collection_source (config)) {
widget = gtk_label_new ("");
g_object_set (G_OBJECT (widget),
diff --git a/src/modules/cal-config-webdav-notes/evolution-cal-config-webdav-notes.c
b/src/modules/cal-config-webdav-notes/evolution-cal-config-webdav-notes.c
index b232fab3d9..5229dc3c67 100644
--- a/src/modules/cal-config-webdav-notes/evolution-cal-config-webdav-notes.c
+++ b/src/modules/cal-config-webdav-notes/evolution-cal-config-webdav-notes.c
@@ -282,9 +282,6 @@ cal_config_webdav_notes_insert_widgets (ESourceConfigBackend *backend,
config = e_source_config_backend_get_config (backend);
collection_source = e_source_config_get_collection_source (config);
- e_cal_source_config_add_offline_toggle (
- E_CAL_SOURCE_CONFIG (config), scratch_source);
-
uid = e_source_get_uid (scratch_source);
context = cal_config_webdav_notes_context_new (backend, scratch_source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]