[gnome-bluetooth/wip/hadess/connectable: 2/3] settings: Use new "connectable" property




commit 68c2fba39676d16568e8b8aa076b43313b806eef
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 20 12:29:52 2022 +0100

    settings: Use new "connectable" property

 lib/bluetooth-settings-widget.c | 6 +++---
 1 file 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"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]