|
|
8c8af5 |
From 76ba63f3cc55912e7d7886c0806640c5c6b726db Mon Sep 17 00:00:00 2001
|
|
|
8c8af5 |
From: Fabrice Bellet <fabrice@bellet.info>
|
|
|
8c8af5 |
Date: Wed, 25 Mar 2015 16:08:34 +0100
|
|
|
8c8af5 |
Subject: [PATCH 4/7] locator: Correct source accuracy comparison
|
|
|
8c8af5 |
|
|
|
8c8af5 |
We now stop sources whose accuracy level becomes higher, rather than
|
|
|
8c8af5 |
lower, than the requested level.
|
|
|
8c8af5 |
|
|
|
8c8af5 |
https://bugs.freedesktop.org/show_bug.cgi?id=89716
|
|
|
8c8af5 |
---
|
|
|
8c8af5 |
src/gclue-locator.c | 2 +-
|
|
|
8c8af5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
8c8af5 |
|
|
|
8c8af5 |
diff --git a/src/gclue-locator.c b/src/gclue-locator.c
|
|
|
8c8af5 |
index 42ce395..91df67e 100644
|
|
|
8c8af5 |
--- a/src/gclue-locator.c
|
|
|
8c8af5 |
+++ b/src/gclue-locator.c
|
|
|
8c8af5 |
@@ -184,7 +184,7 @@ on_avail_accuracy_level_changed (GObject *gobject,
|
|
|
8c8af5 |
!is_source_active (locator, src)) {
|
|
|
8c8af5 |
start_source (locator, src);
|
|
|
8c8af5 |
} else if ((level == GCLUE_ACCURACY_LEVEL_NONE ||
|
|
|
8c8af5 |
- priv->accuracy_level > level) &&
|
|
|
8c8af5 |
+ priv->accuracy_level < level) &&
|
|
|
8c8af5 |
is_source_active (locator, src)) {
|
|
|
8c8af5 |
g_signal_handlers_disconnect_by_func (G_OBJECT (src),
|
|
|
8c8af5 |
G_CALLBACK (on_location_changed),
|
|
|
8c8af5 |
--
|
|
|
8c8af5 |
2.1.0
|
|
|
8c8af5 |
|