[gnome-flashback] system-indicators: show bluetooth indicator even if not powered
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] system-indicators: show bluetooth indicator even if not powered
- Date: Tue, 24 Dec 2019 23:21:37 +0000 (UTC)
commit 781af81ffddc6dfa685be78abc2b4a45667723f1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Dec 25 01:13:26 2019 +0200
system-indicators: show bluetooth indicator even if not powered
system-indicators/si-bluetooth.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/system-indicators/si-bluetooth.c b/system-indicators/si-bluetooth.c
index 4e90ab0..069afc3 100644
--- a/system-indicators/si-bluetooth.c
+++ b/system-indicators/si-bluetooth.c
@@ -444,14 +444,12 @@ get_default_adapter (SiBluetooth *self)
while (valid)
{
gboolean is_default;
- gboolean is_powered;
gtk_tree_model_get (self->model, &iter,
BLUETOOTH_COLUMN_DEFAULT, &is_default,
- BLUETOOTH_COLUMN_POWERED, &is_powered,
-1);
- if (is_default && is_powered)
+ if (is_default)
return gtk_tree_iter_copy (&iter);
valid = gtk_tree_model_iter_next (self->model , &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]