at 23.11-beta 96 lines 3.8 kB view raw
1diff --git a/src/EWS/camel/camel-ews-utils.c b/src/EWS/camel/camel-ews-utils.c 2index 0707f72..1e71954 100644 3--- a/src/EWS/camel/camel-ews-utils.c 4+++ b/src/EWS/camel/camel-ews-utils.c 5@@ -1552,7 +1552,18 @@ ews_utils_save_category_changes (GHashTable *old_categories, /* gchar *guid ~> C 6 7 evo_labels = g_ptr_array_new_full (5, g_free); 8 9- settings = g_settings_new ("org.gnome.evolution.mail"); 10+ { 11+ g_autoptr(GSettingsSchemaSource) schema_source; 12+ g_autoptr(GSettingsSchema) schema; 13+ schema_source = g_settings_schema_source_new_from_directory("@evo@", 14+ g_settings_schema_source_get_default(), 15+ TRUE, 16+ NULL); 17+ schema = g_settings_schema_source_lookup(schema_source, 18+ "org.gnome.evolution.mail", 19+ FALSE); 20+ settings = g_settings_new_full(schema, NULL, NULL); 21+ } 22 strv = g_settings_get_strv (settings, "labels"); 23 24 for (ii = 0; strv && strv[ii]; ii++) { 25diff --git a/src/EWS/common/e-ews-calendar-utils.c b/src/EWS/common/e-ews-calendar-utils.c 26index 6deda60..9b44cc7 100644 27--- a/src/EWS/common/e-ews-calendar-utils.c 28+++ b/src/EWS/common/e-ews-calendar-utils.c 29@@ -413,7 +413,18 @@ ews_get_configured_icaltimezone (void) 30 gchar *location; 31 ICalTimezone *zone = NULL; 32 33- settings = g_settings_new ("org.gnome.evolution.calendar"); 34+ { 35+ g_autoptr(GSettingsSchemaSource) schema_source; 36+ g_autoptr(GSettingsSchema) schema; 37+ schema_source = g_settings_schema_source_new_from_directory("@evo@", 38+ g_settings_schema_source_get_default(), 39+ TRUE, 40+ NULL); 41+ schema = g_settings_schema_source_lookup(schema_source, 42+ "org.gnome.evolution.calendar", 43+ FALSE); 44+ settings = g_settings_new_full(schema, NULL, NULL); 45+ } 46 location = g_settings_get_string (settings, "timezone"); 47 if (location) { 48 zone = i_cal_timezone_get_builtin_timezone (location); 49diff --git a/src/Microsoft365/camel/camel-m365-store.c b/src/Microsoft365/camel/camel-m365-store.c 50index ff1b8e3..4f876c0 100644 51--- a/src/Microsoft365/camel/camel-m365-store.c 52+++ b/src/Microsoft365/camel/camel-m365-store.c 53@@ -309,7 +309,18 @@ m365_store_save_category_changes (GHashTable *old_categories, /* gchar *id ~> Ca 54 55 evo_labels = g_ptr_array_new_full (5, g_free); 56 57- settings = g_settings_new ("org.gnome.evolution.mail"); 58+ { 59+ g_autoptr(GSettingsSchemaSource) schema_source; 60+ g_autoptr(GSettingsSchema) schema; 61+ schema_source = g_settings_schema_source_new_from_directory("@evo@", 62+ g_settings_schema_source_get_default(), 63+ TRUE, 64+ NULL); 65+ schema = g_settings_schema_source_lookup(schema_source, 66+ "org.gnome.evolution.mail", 67+ FALSE); 68+ settings = g_settings_new_full(schema, NULL, NULL); 69+ } 70 strv = g_settings_get_strv (settings, "labels"); 71 72 for (ii = 0; strv && strv[ii]; ii++) { 73diff --git a/src/Microsoft365/common/e-m365-tz-utils.c b/src/Microsoft365/common/e-m365-tz-utils.c 74index 7a1d7f4..3c0d5e1 100644 75--- a/src/Microsoft365/common/e-m365-tz-utils.c 76+++ b/src/Microsoft365/common/e-m365-tz-utils.c 77@@ -192,7 +192,18 @@ e_m365_tz_utils_get_user_timezone (void) 78 gchar *location; 79 ICalTimezone *zone = NULL; 80 81- settings = g_settings_new ("org.gnome.evolution.calendar"); 82+ { 83+ g_autoptr(GSettingsSchemaSource) schema_source; 84+ g_autoptr(GSettingsSchema) schema; 85+ schema_source = g_settings_schema_source_new_from_directory("@evo@", 86+ g_settings_schema_source_get_default(), 87+ TRUE, 88+ NULL); 89+ schema = g_settings_schema_source_lookup(schema_source, 90+ "org.gnome.evolution.calendar", 91+ FALSE); 92+ settings = g_settings_new_full(schema, NULL, NULL); 93+ } 94 95 if (g_settings_get_boolean (settings, "use-system-timezone")) 96 location = e_cal_util_get_system_timezone_location ();