summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2009-09-21 16:59:18 +0100
committerBastien Nocera <hadess@hadess.net>2009-09-21 17:03:00 +0100
commit8cc0b371d73b1ee53e405ce42e9cc51a7840847c (patch)
tree35a7d7266b8a11ddab6a63d88d0dd94c97a025a6
parentd326df2d5b7f78222f70fb805c13ff0a54917535 (diff)
downloadgnome-bluetooth-fedora-11.tar.gz
Bug 595845 - The applet shows wrong connection informationfedora-11
Fix status information in the applet not matching the service status. https://bugzilla.gnome.org/show_bug.cgi?id=595845
-rw-r--r--applet/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/applet/main.c b/applet/main.c
index e9b077de..07a8bd97 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -727,8 +727,9 @@ update_device_list (GtkTreeIter *parent)
list = g_hash_table_get_values (services);
for (l = list; l != NULL; l = l->next) {
- gboolean val = GPOINTER_TO_INT (l->data);
- if (val != FALSE) {
+ BluetoothStatus val = GPOINTER_TO_INT (l->data);
+ if (val == BLUETOOTH_STATUS_CONNECTED ||
+ val == BLUETOOTH_STATUS_PLAYING) {
is_connected = TRUE;
break;
}