From da8cf48c91fafd2428113f67645fa5ceeb713e0d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 8 Dec 2017 19:48:20 +0000 Subject: src/timezone-geoclue.cpp: Blind shot at switching to Geoclue2 DBus API. --- src/timezone-geoclue.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/timezone-geoclue.cpp b/src/timezone-geoclue.cpp index 50ebbcd..816e075 100644 --- a/src/timezone-geoclue.cpp +++ b/src/timezone-geoclue.cpp @@ -89,8 +89,8 @@ private: g_dbus_connection_call(self->m_bus, GEOCLUE_BUS_NAME, - "/org/freedesktop/Geoclue/Master", - "org.freedesktop.Geoclue.Master", + "/org/freedesktop/Geoclue2/Master", + "org.freedesktop.Geoclue2.Master", "Create", nullptr, // parameters G_VARIANT_TYPE("(o)"), @@ -117,7 +117,7 @@ private: auto tag = g_dbus_connection_signal_subscribe(self->m_bus, GEOCLUE_BUS_NAME, - "org.freedesktop.Geoclue.Address", // interface + "org.freedesktop.Geoclue2.Address", // interface "AddressChanged", // signal name self->m_client_object_path.c_str(), // object path nullptr, // arg0 @@ -130,7 +130,7 @@ private: g_dbus_connection_call(self->m_bus, GEOCLUE_BUS_NAME, self->m_client_object_path.c_str(), - "org.freedesktop.Geoclue.MasterClient", + "org.freedesktop.Geoclue2.MasterClient", "SetRequirements", g_variant_new("(iibi)", 2, 0, FALSE, 1023), nullptr, @@ -164,7 +164,7 @@ private: g_dbus_connection_call(self->m_bus, GEOCLUE_BUS_NAME, self->m_client_object_path.c_str(), - "org.freedesktop.Geoclue.MasterClient", + "org.freedesktop.Geoclue2.MasterClient", "AddressStart", nullptr, nullptr, @@ -189,7 +189,7 @@ private: g_dbus_connection_call(self->m_bus, GEOCLUE_BUS_NAME, self->m_client_object_path.c_str(), - "org.freedesktop.Geoclue.Address", + "org.freedesktop.Geoclue2.Address", "GetAddress", nullptr, G_VARIANT_TYPE("(ia{ss}(idd))"), -- cgit v1.2.3