diff options
author | Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk> | 2009-08-06 22:37:57 +0800 |
---|---|---|
committer | Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk> | 2009-08-06 22:37:57 +0800 |
commit | 2fe171b03ebf6e2a4f726e456527cacafa1c4194 (patch) | |
tree | 2e95e02a417b25cae7db271aa1bc777c895283a7 /libempathy-gtk/empathy-location-manager.c | |
parent | 713fb600634add0e0abe35489402e5ed8d5fde10 (diff) | |
download | gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar.gz gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar.bz2 gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar.lz gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar.xz gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.tar.zst gsoc2013-empathy-2fe171b03ebf6e2a4f726e456527cacafa1c4194.zip |
Remove redundant == TRUE/FALSE
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r-- | libempathy-gtk/empathy-location-manager.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c index 087ce5644..2018b5c5a 100644 --- a/libempathy-gtk/empathy-location-manager.c +++ b/libempathy-gtk/empathy-location-manager.c @@ -197,13 +197,13 @@ publish_location (EmpathyLocationManager *location_manager, if (!conn) return; - if (force_publication == FALSE) + if (!force_publication) { if (!empathy_conf_get_bool (conf, EMPATHY_PREFS_LOCATION_PUBLISH, &can_publish)) return; - if (can_publish == FALSE) + if (!can_publish) return; } @@ -546,15 +546,15 @@ publish_cb (EmpathyConf *conf, DEBUG ("Publish Conf changed"); - if (empathy_conf_get_bool (conf, key, &can_publish) == FALSE) + if (!empathy_conf_get_bool (conf, key, &can_publish)) return; - if (can_publish == TRUE) + if (can_publish) { - if (priv->geoclue_is_setup == FALSE) + if (!priv->geoclue_is_setup) setup_geoclue (manager); /* if still not setup than the init failed */ - if (priv->geoclue_is_setup == FALSE) + if (!priv->geoclue_is_setup) return; geoclue_address_get_address_async (priv->gc_address, @@ -588,11 +588,11 @@ resource_cb (EmpathyConf *conf, if (!empathy_conf_get_bool (conf, key, &resource_enabled)) return; - if (tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_NETWORK) == FALSE) + if (!tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_NETWORK)) resource = GEOCLUE_RESOURCE_NETWORK; - if (tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_CELL) == FALSE) + if (!tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_CELL)) resource = GEOCLUE_RESOURCE_CELL; - if (tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_GPS) == FALSE) + if (!tp_strdiff (key, EMPATHY_PREFS_LOCATION_RESOURCE_GPS)) resource = GEOCLUE_RESOURCE_GPS; if (resource_enabled) |