Commit aad88cfb authored by Zeeshan Ali's avatar Zeeshan Ali

Location: All D-Bus prop names capitalized

This is the general D-Bus convention and this properties should have
been correctly named from the beginning.
parent 2b84dded
......@@ -50,11 +50,11 @@ on_location_proxy_ready (GObject *source_object,
exit (-5);
}
value = g_dbus_proxy_get_cached_property (location, "latitude");
value = g_dbus_proxy_get_cached_property (location, "Latitude");
latitude = g_variant_get_double (value);
value = g_dbus_proxy_get_cached_property (location, "longitude");
value = g_dbus_proxy_get_cached_property (location, "Longitude");
longitude = g_variant_get_double (value);
value = g_dbus_proxy_get_cached_property (location, "accuracy");
value = g_dbus_proxy_get_cached_property (location, "Accuracy");
accuracy = g_variant_get_double (value);
g_print ("Latitude: %f\nLongitude: %f\nAccuracy (in meters): %f\n",
......@@ -62,7 +62,7 @@ on_location_proxy_ready (GObject *source_object,
longitude,
accuracy);
value = g_dbus_proxy_get_cached_property (location, "description");
value = g_dbus_proxy_get_cached_property (location, "Description");
desc = g_variant_get_string (value, &desc_len);
if (desc_len > 0)
g_print ("Description: %s\n", desc);
......
......@@ -17,9 +17,9 @@
</signal>
</interface>
<interface name="org.freedesktop.GeoClue2.Location">
<property name="latitude" type="d" access="read"/>
<property name="longitude" type="d" access="read"/>
<property name="accuracy" type="d" access="read"/>
<property name="description" type="s" access="read"/>
<property name="Latitude" type="d" access="read"/>
<property name="Longitude" type="d" access="read"/>
<property name="Accuracy" type="d" access="read"/>
<property name="Description" type="s" access="read"/>
</interface>
</node>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment