Commit 8c1d8dff authored by Jussi Kukkonen's avatar Jussi Kukkonen

bugfixes in plazes-backend, hostip-backend, position-example

I had forgotten add real civic location signal emission to the
backends. position example bailed out when status or current_position
failed: this is not always wanted
parent f64c3f04
......@@ -478,11 +478,10 @@ static void set_civic_location (GeocluePosition *obj,
obj->civic_room = g_strdup (room);
obj->civic_description = g_strdup (description);
obj->civic_text = g_strdup (text);
geoclue_position_civic_location_changed (obj,
country, region, locality, area,
postalcode, street, building,
floor, room, description, text);
g_signal_emit_by_name (obj, "civic_location_changed",
country, region, locality, area, postalcode, street,
building, floor, room, description, text);
}
/* if net connection is monitored, the validity of location can be guaranteed */
......
......@@ -539,11 +539,10 @@ static void set_civic_location (GeocluePosition *server,
server->civic_room = g_strdup (room);
server->civic_description = g_strdup (description);
server->civic_text = g_strdup (text);
geoclue_position_civic_location_changed (server,
country, region, locality, area,
postalcode, street, building,
floor, room, description, text);
g_signal_emit_by_name (server, "civic_location_changed",
country, region, locality, area, postalcode, street,
building, floor, room, description, text);
}
/* if net connection is monitored, the validity of location can be guaranteed */
......
......@@ -65,7 +65,6 @@ int main (int argc, char** argv)
g_debug ("Querying geoclue_position_service_status");
if (geoclue_position_service_status (NULL, &status, &reason) != GEOCLUE_POSITION_SUCCESS) {
g_debug ("current status query failed");
return 1;
} else {
g_debug ("current status query ok");
printf ("The backend status is %d\n %d No service available\n %d acquiring altitude \n %d acquiring longitude \n %d acquiring latitude \n %d has alititude available \n %d has longitude available \n %d has latitude available \n for the reason %s\n",
......@@ -88,7 +87,6 @@ int main (int argc, char** argv)
g_debug ("Querying current position");
if (geoclue_position_current_position (NULL, &timestamp, &lat, &lon, &altitude) != GEOCLUE_POSITION_SUCCESS) {
g_debug ("current position query failed");
return 1;
} else {
g_debug ("current position query ok");
......
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