From 68c2fba39676d16568e8b8aa076b43313b806eef Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 20 Jan 2022 12:29:52 +0100 Subject: settings: Use new "connectable" property --- lib/bluetooth-settings-widget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c index e6ae7233..2765781b 100644 --- a/lib/bluetooth-settings-widget.c +++ b/lib/bluetooth-settings-widget.c @@ -1088,7 +1088,7 @@ update_properties (BluetoothSettingsWidget *self, { GtkSwitch *button; BluetoothType type; - gboolean connected, paired; + gboolean connected, paired, connectable; g_auto(GStrv) uuids = NULL; char *bdaddr, *alias; g_autofree char *icon = NULL; @@ -1105,6 +1105,7 @@ update_properties (BluetoothSettingsWidget *self, "connected", &connected, "uuids", &uuids, "type", &type, + "connectable", &connectable, NULL); g_free (self->selected_object_path); @@ -1139,8 +1140,7 @@ update_properties (BluetoothSettingsWidget *self, paired ? _("Yes") : _("No")); /* UUIDs */ - gtk_widget_set_sensitive (GTK_WIDGET (button), - bluetooth_client_get_connectable ((const char **) uuids)); + gtk_widget_set_sensitive (GTK_WIDGET (button), connectable); for (i = 0; uuids && uuids[i] != NULL; i++) { if (g_str_equal (uuids[i], "OBEXObjectPush")) { gtk_widget_show (WID ("send_button")); -- cgit v1.2.1