[gnome-bluetooth/fedora-11] Bug 595845 - The applet shows wrong connection information
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/fedora-11] Bug 595845 - The applet shows wrong connection information
- Date: Mon, 21 Sep 2009 16:03:07 +0000 (UTC)
commit 8cc0b371d73b1ee53e405ce42e9cc51a7840847c
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 21 16:59:18 2009 +0100
Bug 595845 - The applet shows wrong connection information
Fix status information in the applet not matching the service status.
https://bugzilla.gnome.org/show_bug.cgi?id=595845
applet/main.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index e9b077d..07a8bd9 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]