[gnome-bluetooth/gnome-2-28] Setup default value for the device type filter
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-2-28] Setup default value for the device type filter
- Date: Sat, 26 Sep 2009 11:54:10 +0000 (UTC)
commit c75c4c4c112e91024044e8149c0fef52207d31f4
Author: Bastien Nocera <hadess hadess net>
Date: Sat Sep 26 12:53:51 2009 +0100
Setup default value for the device type filter
lib/bluetooth-chooser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-chooser.c b/lib/bluetooth-chooser.c
index b7a73e0..0787bd3 100644
--- a/lib/bluetooth-chooser.c
+++ b/lib/bluetooth-chooser.c
@@ -791,6 +791,7 @@ bluetooth_chooser_init(BluetoothChooser *self)
priv->show_paired = FALSE;
priv->show_searching = FALSE;
+ priv->device_type_filter = BLUETOOTH_TYPE_ANY;
priv->client = bluetooth_client_new ();
@@ -1173,7 +1174,7 @@ bluetooth_chooser_class_init (BluetoothChooserClass *klass)
max_filter_val += 1 << i;
g_object_class_install_property (G_OBJECT_CLASS(klass),
PROP_DEVICE_TYPE_FILTER, g_param_spec_int ("device-type-filter",
- "device-type-filter", "A bitmask of #BluetoothType to show", BLUETOOTH_TYPE_ANY, max_filter_val, 1, G_PARAM_READWRITE));
+ "device-type-filter", "A bitmask of #BluetoothType to show", BLUETOOTH_TYPE_ANY, max_filter_val, BLUETOOTH_TYPE_ANY, G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS(klass),
PROP_DEVICE_CATEGORY_FILTER, g_param_spec_enum ("device-category-filter",
"device-category-filter", "The #BluetoothCategory to show", BLUETOOTH_TYPE_CATEGORY, BLUETOOTH_CATEGORY_ALL, G_PARAM_READWRITE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]