[gnome-bluetooth] lib: Use type filter string
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Use type filter string
- Date: Tue, 29 Nov 2016 17:26:38 +0000 (UTC)
commit e894dde493584ac5d71326e7bc26a151bcb452bf
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 29 12:06:28 2016 +0100
lib: Use type filter string
So that "All types" shows up instead of "Unknown" with the standard
device type.
lib/bluetooth-filter-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-filter-widget.c b/lib/bluetooth-filter-widget.c
index 2f2da14..d010bb6 100644
--- a/lib/bluetooth-filter-widget.c
+++ b/lib/bluetooth-filter-widget.c
@@ -288,7 +288,7 @@ bluetooth_filter_widget_init(BluetoothFilterWidget *self)
gtk_grid_attach (GTK_GRID (table), priv->device_type, 1, 1, 1, 1);
gtk_widget_set_tooltip_text (priv->device_type, _("Select the device type to filter"));
gtk_list_store_insert_with_values (GTK_LIST_STORE (priv->device_type_filter_model), NULL, G_MAXUINT32,
- DEVICE_TYPE_FILTER_COL_NAME, _(bluetooth_type_to_string
(BLUETOOTH_TYPE_ANY)),
+ DEVICE_TYPE_FILTER_COL_NAME, _(bluetooth_type_to_filter_string
(BLUETOOTH_TYPE_ANY)),
DEVICE_TYPE_FILTER_COL_MASK, BLUETOOTH_TYPE_ANY,
-1);
gtk_list_store_insert_with_values (GTK_LIST_STORE (priv->device_type_filter_model), NULL, G_MAXUINT32,
@@ -305,7 +305,7 @@ bluetooth_filter_widget_init(BluetoothFilterWidget *self)
if (mask & BLUETOOTH_TYPE_INPUT || mask & BLUETOOTH_TYPE_AUDIO)
continue;
gtk_list_store_insert_with_values (GTK_LIST_STORE (priv->device_type_filter_model), NULL,
G_MAXUINT32,
- DEVICE_TYPE_FILTER_COL_NAME, _(bluetooth_type_to_string
(mask)),
+ DEVICE_TYPE_FILTER_COL_NAME,
_(bluetooth_type_to_filter_string (mask)),
DEVICE_TYPE_FILTER_COL_MASK, mask,
-1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]