aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-05 00:03:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-05 01:10:02 +0800
commit5794c63f4ff48ad4abc677954fcd5e9bb578aacc (patch)
tree8fd8dcd8e6060085efa099bedf8ca0b1405f3cdd /data
parent046816123764f86f1b258195292abcdb7951fca3 (diff)
downloadgsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.gz
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.bz2
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.lz
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.xz
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.zst
gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.zip
EMailBrowser: Add "close-on-reply-policy" property.
Mainly to avoid accessing GSettings directly from EMailBrowser. Also add a "browser-close-on-reply-policy" GSettings key that replaces "prompt-on-reply-close-browser", the difference being the new key uses an enum definition compatible with EAutomaticActionPolicy instead of a free-form string value. And finally add an ESettingsMailBrowser class to glue things together.
Diffstat (limited to 'data')
-rw-r--r--data/org.gnome.evolution.mail.gschema.xml.in17
1 files changed, 14 insertions, 3 deletions
diff --git a/data/org.gnome.evolution.mail.gschema.xml.in b/data/org.gnome.evolution.mail.gschema.xml.in
index 65480585fd..71fff625dc 100644
--- a/data/org.gnome.evolution.mail.gschema.xml.in
+++ b/data/org.gnome.evolution.mail.gschema.xml.in
@@ -1,5 +1,12 @@
<schemalist>
+ <!-- Keep this synchronized with EAutomaticActionPolicy. -->
+ <enum id="org.gnome.evolution.mail.AutomaticActionPolicy">
+ <value nick='ask' value='0'/>
+ <value nick='always' value='1'/>
+ <value nick='never' value='2'/>
+ </enum>
+
<!-- Keep this synchronized with EMailForwardStyle. -->
<enum id="org.gnome.evolution.mail.ForwardStyle">
<value nick='attached' value='0'/>
@@ -426,10 +433,9 @@
<_summary>Prompt when replying to many recipients</_summary>
<_description>It disables/enables the repeated prompts to warn that you are sending a reply to many people.</_description>
</key>
- <key name="prompt-on-reply-close-browser" type="s">
+ <key name="browser-close-on-reply-policy" enum="org.gnome.evolution.mail.AutomaticActionPolicy">
<default>'ask'</default>
- <_summary>Asks whether to close the message window when the user forwards or replies to the message shown in the window</_summary>
- <_description>Possible values are: 'never' - to never close browser window, 'always' - to always close browser window or 'ask' - (or any other value) will ask user.</_description>
+ <_summary>Policy for automatically closing the message browser window when forwarding or replying to the displayed message.</_summary>
</key>
<key name="trash-empty-on-exit" type="b">
<default>false</default>
@@ -565,6 +571,11 @@
<_summary>(Deprecated) Load images for HTML messages over HTTP</_summary>
<_description>This key was deprecated in version 3.10 and should no longer be used. Use "image-loading-policy" instead.</_description>
</key>
+ <key name="prompt-on-reply-close-browser" type="s">
+ <default>'ask'</default>
+ <_summary>(Deprecated) Asks whether to close the message window when the user forwards or replies to the message shown in the window</_summary>
+ <_description>This key was deprecated in version 3.10 and should no longer be used. Use "browser-close-on-reply-policy" instead.</_description>
+ </key>
</schema>