diff options
author | Ted Gould <ted@gould.cx> | 2011-12-13 11:54:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-12-13 11:54:41 -0500 |
commit | b9836332dccd804469d8a83c535d5a0816598455 (patch) | |
tree | 752d1c2846905c3d38963c077639125ba38440b6 | |
parent | ba87e5cb673992cee0fcb0bb3c90523974836a30 (diff) | |
parent | fd7d20aa15f5d947f7b19871ac7abd956e4c1fd2 (diff) | |
download | ayatana-indicator-datetime-b9836332dccd804469d8a83c535d5a0816598455.tar.gz ayatana-indicator-datetime-b9836332dccd804469d8a83c535d5a0816598455.tar.bz2 ayatana-indicator-datetime-b9836332dccd804469d8a83c535d5a0816598455.zip |
Fixing Geoclue support
-rw-r--r-- | src/datetime-service.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index ed8c8e3..73a3361 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -1404,7 +1404,12 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * geo_master = client; - if (geo_master != NULL) { + if (error != NULL) { + g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message); + return; + } + + if (geo_master == NULL) { g_warning(_("Unable to get a GeoClue client! Geolocation based timezone support will not be available.")); return; } |