[evolution] Split "working-days" setting into separate booleans.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Split "working-days" setting into separate booleans.
- Date: Sun, 17 Mar 2013 13:41:50 +0000 (UTC)
commit 566d48b354500180700d23405d500a101d3bfd2f
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Mar 8 17:09:37 2013 -0500
Split "working-days" setting into separate booleans.
Add separate boolean keys for each day of the week:
"working-day-monday"
"working-day-tuesday"
"working-day-wednesday"
"working-day-thursday"
"working-day-friday"
"working-day-saturday"
"working-day-sunday"
These are much easier to decipher and much easier to bind boolean
GObject properties to.
The "working-days" setting is now deprecated.
data/org.gnome.evolution.calendar.gschema.xml.in | 36 +++++++++++++++++++--
1 files changed, 32 insertions(+), 4 deletions(-)
---
diff --git a/data/org.gnome.evolution.calendar.gschema.xml.in
b/data/org.gnome.evolution.calendar.gschema.xml.in
index 5b3f358..4fd4a2e 100644
--- a/data/org.gnome.evolution.calendar.gschema.xml.in
+++ b/data/org.gnome.evolution.calendar.gschema.xml.in
@@ -333,10 +333,33 @@
<default>'monday'</default>
<_summary>First day of the week</_summary>
</key>
- <key name="working-days" type="i">
- <default>62</default>
- <_summary>Work days</_summary>
- <_description>Days on which the start and end of work hours should be indicated</_description>
+ <key name="work-day-monday" type="b">
+ <default>true</default>
+ <_summary>Monday is a work day</_summary>
+ </key>
+ <key name="work-day-tuesday" type="b">
+ <default>true</default>
+ <_summary>Tuesday is a work day</_summary>
+ </key>
+ <key name="work-day-wednesday" type="b">
+ <default>true</default>
+ <_summary>Wednesday is a work day</_summary>
+ </key>
+ <key name="work-day-thursday" type="b">
+ <default>true</default>
+ <_summary>Thursday is a work day</_summary>
+ </key>
+ <key name="work-day-friday" type="b">
+ <default>true</default>
+ <_summary>Friday is a work day</_summary>
+ </key>
+ <key name="work-day-saturday" type="b">
+ <default>false</default>
+ <_summary>Saturday is a work day</_summary>
+ </key>
+ <key name="work-day-sunday" type="b">
+ <default>false</default>
+ <_summary>Sunday is a work day</_summary>
</key>
<!-- The following keys are deprecated. -->
@@ -346,6 +369,11 @@
<_summary>(Deprecated) First day of the week, from Sunday (0) to Saturday (6)</_summary>
<_description>This key was deprecated in version 3.10 and should no longer be used. Use
"week-start-day-name" instead.</_description>
</key>
+ <key name="working-days" type="i">
+ <default>62</default>
+ <_summary>(Deprecated) Work days</_summary>
+ <_description>Days on which the start and end of work hours should be indicated. (This key was
deprecated in version 3.10 and should no longer be used. Use the "work-day-monday", "work-day-tuesday", etc.
keys instead.)</_description>
+ </key>
</schema>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]