summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-20 12:29:52 +0100
committerBastien Nocera <hadess@hadess.net>2022-01-20 15:14:51 +0100
commit68c2fba39676d16568e8b8aa076b43313b806eef (patch)
treec4ddb5c986ef29440176b8884a11f6ab47abaefd /lib
parent6f611a6776bb27c7c2019ee596750f327a85092e (diff)
downloadgnome-bluetooth-68c2fba39676d16568e8b8aa076b43313b806eef.tar.gz
settings: Use new "connectable" property
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-settings-widget.c6
1 files changed, 3 insertions, 3 deletions
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"));