[gsettings-desktop-schemas] location: Assign values to accuracy level enums



commit 29dd1f8ba4f3f534406baf31f3987c608d133cf9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 8 17:23:53 2014 +0100

    location: Assign values to accuracy level enums
    
    Without explicitly assigning values, they are different from the values
    assigned by geoclue and therefore we end up with incorrect accuracy.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736272

 headers/gdesktop-enums.h |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index 2b0e181..8a082ad 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -155,11 +155,16 @@ typedef enum
 
 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
+    /* Corresponds to GCLUE_ACCURACY_LEVEL_COUNTRY */
+    G_DESKTOP_LOCATION_ACCURACY_LEVEL_COUNTRY = 1,
+    /* Corresponds to GCLUE_ACCURACY_LEVEL_CITY */
+    G_DESKTOP_LOCATION_ACCURACY_LEVEL_CITY = 4,
+    /* Corresponds to GCLUE_ACCURACY_LEVEL_NEIGHBORHOOD */
+    G_DESKTOP_LOCATION_ACCURACY_LEVEL_NEIGHBORHOOD = 5,
+    /* Corresponds to GCLUE_ACCURACY_LEVEL_STREET */
+    G_DESKTOP_LOCATION_ACCURACY_LEVEL_STREET = 6,
+    /* Corresponds to GCLUE_ACCURACY_LEVEL_EXACT */
+    G_DESKTOP_LOCATION_ACCURACY_LEVEL_EXACT = 8
 } GDesktopLocationAccuracyLevel;
 
 #endif /* __gdesktop_enums_h__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]