diff options
author | Ted Gould <ted@gould.cx> | 2011-02-08 22:26:31 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-08 22:26:31 -0600 |
commit | d0e0e20ee786e3d109306fdf31856cc5f5da925e (patch) | |
tree | 6ee3b67ef3c7ba6a72a64c6993fa11c7d0fb1239 /src/datetime-service.c | |
parent | 088c1f4ccd34ee463c9aa414cda870af260bdb55 (diff) | |
parent | c721c1d4d5d63e5765898aab2b8906b3187b3e93 (diff) | |
download | ayatana-indicator-datetime-d0e0e20ee786e3d109306fdf31856cc5f5da925e.tar.gz ayatana-indicator-datetime-d0e0e20ee786e3d109306fdf31856cc5f5da925e.tar.bz2 ayatana-indicator-datetime-d0e0e20ee786e3d109306fdf31856cc5f5da925e.zip |
Checking for NULL clients and giving a message
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 129d93e..e373ae8 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -806,6 +806,12 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * g_debug("Created Geoclue client at: %s", path); geo_master = client; + + if (geo_master != NULL) { + g_warning(_("Unable to get a GeoClue client! Geolocation based timezone support will not be available.")); + return; + } + g_object_ref(G_OBJECT(geo_master)); /* New client, make sure we don't have an address hanging on */ |