[gnome-bluetooth] lib: Add getter for connectable property



commit 5ef0932dd7f66691eedf9387e80f501fb4fcdea7
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Fri Jan 28 22:32:00 2022 +0100

    lib: Add getter for connectable property
    
    The property was forgotten in commit 6f611a67, which made the
    connect button in the settings panel not work properly.
    
    Fixes: 6f611a67

 lib/bluetooth-device.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/lib/bluetooth-device.c b/lib/bluetooth-device.c
index 9dc8d5a5..3b02b0de 100644
--- a/lib/bluetooth-device.c
+++ b/lib/bluetooth-device.c
@@ -123,6 +123,9 @@ bluetooth_device_get_property (GObject        *object,
        case PROP_UUIDS:
                g_value_set_boxed (value, device->uuids);
                break;
+       case PROP_CONNECTABLE:
+               g_value_set_boolean (value, device->connectable);
+               break;
        default:
                G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
                break;


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