diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-09-21 16:59:18 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2009-09-21 17:03:00 +0100 |
commit | 8cc0b371d73b1ee53e405ce42e9cc51a7840847c (patch) | |
tree | 35a7d7266b8a11ddab6a63d88d0dd94c97a025a6 | |
parent | d326df2d5b7f78222f70fb805c13ff0a54917535 (diff) | |
download | gnome-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.c | 5 |
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; } |