[gsettings-desktop-schemas] Add location settings
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] Add location settings
- Date: Sun, 10 Aug 2014 16:55:29 +0000 (UTC)
commit 5f944f901195147f7209cb3562f020821adc0bad
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Aug 9 15:50:46 2014 +0100
Add location settings
Moving location settings from gnome-shell to here because they will now
also be accessed by gnome-control-center.
https://bugzilla.gnome.org/show_bug.cgi?id=734555
headers/gdesktop-enums.h | 9 +++++++
schemas/Makefile.am | 1 +
.../org.gnome.system.location.gschema.xml.in.in | 24 ++++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index 65a61c6..2b0e181 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -153,4 +153,13 @@ typedef enum
G_DESKTOP_VISUAL_BELL_FRAME_FLASH,
} GDesktopVisualBellType;
+typedef enum
+{
+ G_DESKTOP_LOCATION_ACCURACY_LEVEL_COUNTRY,
+ G_DESKTOP_LOCATION_ACCURACY_LEVEL_CITY,
+ G_DESKTOP_LOCATION_ACCURACY_LEVEL_NEIGHBORHOOD,
+ G_DESKTOP_LOCATION_ACCURACY_LEVEL_STREET,
+ G_DESKTOP_LOCATION_ACCURACY_LEVEL_EXACT
+} GDesktopLocationAccuracyLevel;
+
#endif /* __gdesktop_enums_h__ */
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index 165cc7d..942bbe7 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -3,6 +3,7 @@ desktop_gschemas_in_in = \
org.gnome.desktop.interface.gschema.xml.in.in \
org.gnome.desktop.lockdown.gschema.xml.in.in \
org.gnome.system.locale.gschema.xml.in.in \
+ org.gnome.system.location.gschema.xml.in.in \
org.gnome.system.proxy.gschema.xml.in.in \
org.gnome.desktop.sound.gschema.xml.in.in \
org.gnome.desktop.thumbnail-cache.gschema.xml.in.in \
diff --git a/schemas/org.gnome.system.location.gschema.xml.in.in
b/schemas/org.gnome.system.location.gschema.xml.in.in
new file mode 100644
index 0000000..efb037e
--- /dev/null
+++ b/schemas/org.gnome.system.location.gschema.xml.in.in
@@ -0,0 +1,24 @@
+<schemalist gettext-domain="gsettings-desktop-schemas">
+ <schema id="org.gnome.system.location"
+ path="/org/gnome/system/location/">
+ <key type="b" name="enabled">
+ <default>true</default>
+ <_summary>Geolocation services are enabled.</_summary>
+ <_description>
+ If true, applications are allowed to access location information.
+ </_description>
+ </key>
+ <key name="max-accuracy-level" enum="org.gnome.desktop.GDesktopLocationAccuracyLevel">
+ <default>'exact'</default>
+ <_summary>The maximum accuracy level of location.</_summary>
+ <_description>
+ Configures the maximum level of location accuracy applications are
+ allowed to see. Valid options are 'country', 'city', 'neighborhood',
+ 'street', and 'exact' (typically requires GPS receiver). Please keep in
+ mind that this only controls what GeoClue will allow applications to see
+ and they can find user's location on their own using network resources
+ (albeit with street-level accuracy at best).
+ </_description>
+ </key>
+ </schema>
+</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]