diff options
Diffstat (limited to 'src/location-geoclue2.c')
-rw-r--r-- | src/location-geoclue2.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/location-geoclue2.c b/src/location-geoclue2.c index b1489db..c2c080a 100644 --- a/src/location-geoclue2.c +++ b/src/location-geoclue2.c @@ -86,7 +86,7 @@ geoclue_client_signal_cb(GDBusProxy *client, gchar *sender_name, gchar *signal_n NULL, "org.freedesktop.GeoClue2", location_path, "org.freedesktop.GeoClue2.Location", NULL, &error); if (!location) { - weprintf(_("Unable to obtain location: %s.\n"), error->message); + weprintf(_("Unable to obtain location: %s."), error->message); g_error_free(error); mark_error(state); return; @@ -131,7 +131,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, "org.freedesktop.GeoClue2", "/org/freedesktop/GeoClue2/Manager", "org.freedesktop.GeoClue2.Manager", NULL, &error); if (!geoclue_manager) { - weprintf(_("Unable to obtain GeoClue Manager: %s.\n"), error->message); + weprintf(_("Unable to obtain GeoClue Manager: %s."), error->message); g_error_free(error); mark_error(state); return; @@ -142,7 +142,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, client_path_v = g_dbus_proxy_call_sync(geoclue_manager, "GetClient", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!client_path_v) { - weprintf(_("Unable to obtain GeoClue client path: %s.\n"), error->message); + weprintf(_("Unable to obtain GeoClue client path: %s."), error->message); g_error_free(error); g_object_unref(geoclue_manager); mark_error(state); @@ -156,7 +156,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, geoclue_client = g_dbus_proxy_new_sync(conn, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.GeoClue2", client_path, "org.freedesktop.GeoClue2.Client", NULL, &error); if (!geoclue_client) { - weprintf(_("Unable to obtain GeoClue Client: %s.\n"), error->message); + weprintf(_("Unable to obtain GeoClue Client: %s."), error->message); g_error_free(error); g_variant_unref(client_path_v); g_object_unref(geoclue_manager); @@ -174,7 +174,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!ret_v) { /* Ignore this error for now. The property is not available - in early versions of GeoClue2. */ + * in early versions of GeoClue2. */ } else { g_variant_unref(ret_v); } @@ -186,7 +186,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, "DistanceThreshold", g_variant_new("u", 50000)), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!ret_v) { - weprintf(_("Unable to set distance threshold: %s.\n"), error->message); + weprintf(_("Unable to set distance threshold: %s."), error->message); g_error_free(error); g_object_unref(geoclue_client); g_object_unref(geoclue_manager); @@ -203,7 +203,7 @@ on_name_appeared(GDBusConnection *conn, const gchar *name, error = NULL; ret_v = g_dbus_proxy_call_sync(geoclue_client, "Start", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!ret_v) { - weprintf(_("Unable to start GeoClue client: %s.\n"), error->message); + weprintf(_("Unable to start GeoClue client: %s."), error->message); if (g_dbus_error_is_remote_error(error)) { dbus_error = g_dbus_error_get_remote_error( error); if (!g_strcmp0(dbus_error, DBUS_ACCESS_ERROR)) @@ -311,7 +311,7 @@ location_geoclue2_start(struct location_state *state) state->location.lon = 0; if (pipeutils_create_nonblocking(pipefds)) { - weprintf(_("Failed to start GeoClue2 provider!\n")); + weprintf(_("Failed to start GeoClue2 provider!")); return -1; } @@ -352,7 +352,7 @@ location_geoclue2_set_option(struct location_state *state, const char *key, cons { (void) state; (void) value; - weprintf(_("Unknown method parameter: `%s'.\n"), key); + weprintf(_("Unknown method parameter: `%s'."), key); return -1; } |