diff --git a/desktop/org.gnome.Geary.gschema.xml b/desktop/org.gnome.Geary.gschema.xml
index fafb6ba2..9f2467b5 100644
--- a/desktop/org.gnome.Geary.gschema.xml
+++ b/desktop/org.gnome.Geary.gschema.xml
@@ -113,6 +113,13 @@
The last recorded size of the detached composer window.
+
+ 5
+ Undo sending email delay
+ The number of seconds to wait before sending an
+ email. Set to zero or less to disable.
+
+
false
Whether we migrated the old settings
diff --git a/src/client/application/application-configuration.vala b/src/client/application/application-configuration.vala
index 10464c5a..051b4d7d 100644
--- a/src/client/application/application-configuration.vala
+++ b/src/client/application/application-configuration.vala
@@ -1,11 +1,13 @@
-/* Copyright 2016 Software Freedom Conservancy Inc.
+/*
+ * Copyright 2016 Software Freedom Conservancy Inc.
+ * Copyright 2019 Michael Gratton
*
* This software is licensed under the GNU Lesser General Public License
- * (version 2.1 or later). See the COPYING file in this distribution.
+ * (version 2.1 or later). See the COPYING file in this distribution.
*/
/**
- * Provides convenience properties to current Geary GSettings values.
+ * Provides properties to access application GSettings values.
*/
public class Application.Configuration {
@@ -25,6 +27,7 @@ public class Application.Configuration {
public const string SPELL_CHECK_LANGUAGES = "spell-check-languages";
public const string SPELL_CHECK_VISIBLE_LANGUAGES = "spell-check-visible-languages";
public const string STARTUP_NOTIFICATIONS_KEY = "startup-notifications";
+ public const string UNDO_SEND_DELAY = "undo-send-delay";
public const string WINDOW_HEIGHT_KEY = "window-height";
public const string WINDOW_MAXIMIZE_KEY = "window-maximize";
public const string WINDOW_WIDTH_KEY = "window-width";
@@ -200,6 +203,12 @@ public class Application.Configuration {
}
}
+ /** The number of seconds to wait before sending an email. */
+ public int undo_send_delay {
+ get { return settings.get_int(UNDO_SEND_DELAY); }
+ }
+
+
// Creates a configuration object.
public Configuration(string schema_id) {
// Start GSettings.