[gnome-bluetooth] lib: Fix long-standing FIXME
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix long-standing FIXME
- Date: Fri, 14 Oct 2011 14:38:20 +0000 (UTC)
commit 4aa07231acae71eb557ed5fe3f99ecb3fdcd24b4
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 13 18:39:20 2011 +0100
lib: Fix long-standing FIXME
By setting the initial search/discovering state from
the adapter rather than guessing it's not discovering right now.
lib/bluetooth-chooser.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-chooser.c b/lib/bluetooth-chooser.c
index ee3f7c4..c11504c 100644
--- a/lib/bluetooth-chooser.c
+++ b/lib/bluetooth-chooser.c
@@ -871,8 +871,14 @@ bluetooth_chooser_init(BluetoothChooser *self)
gtk_widget_show (priv->search_label);
gtk_widget_show (hbox);
+ if (priv->show_searching) {
+ gboolean discovering;
+
+ g_object_get (G_OBJECT (priv->client), "default-adapter-discovering", &discovering, NULL);
+ set_search_label (self, discovering);
+ }
+
gtk_box_pack_start (GTK_BOX (priv->search_hbox), hbox, FALSE, TRUE, 0);
- //FIXME check whether the default adapter is discovering right now
/* The treeview */
priv->scrolled_window = create_treeview (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]