[gnome-bluetooth] 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] Bug 595845 - The applet shows wrong connection information
- Date: Mon, 21 Sep 2009 16:02:14 +0000 (UTC)
commit 80a71e8825ca7e897c4a62a702d2d7dc3bcc3c86
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 ebd1b9c..2112a9e 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -723,8 +723,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]