[gnome-bluetooth] lib: Adapt to GtkSwitch API changes



commit b592d09343f8ee9bb6627762db114b0f9f990461
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Oct 27 15:41:38 2021 -0300

    lib: Adapt to GtkSwitch API changes
    
    The "active" property is now "spinning", and "use_action_appearance"
    doesn't exist anymore.

 lib/bluetooth-pairing-dialog.c  | 2 +-
 lib/bluetooth-settings-row.c    | 2 +-
 lib/bluetooth-settings-widget.c | 2 +-
 lib/settings.ui                 | 2 --
 4 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index 43bac9f6..cfc5aa70 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -296,7 +296,7 @@ bluetooth_pairing_dialog_constructed (GObject *object)
        gtk_widget_hide (priv->spinner);
        gtk_header_bar_pack_end (GTK_HEADER_BAR (header), priv->spinner);
        g_object_bind_property (priv->spinner, "visible",
-                               priv->spinner, "active", 0);
+                               priv->spinner, "spinning", 0);
        g_object_bind_property (priv->spinner, "visible",
                                priv->done, "visible",
                                G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN | G_BINDING_BIDIRECTIONAL);
diff --git a/lib/bluetooth-settings-row.c b/lib/bluetooth-settings-row.c
index 619db396..f2b89af5 100644
--- a/lib/bluetooth-settings-row.c
+++ b/lib/bluetooth-settings-row.c
@@ -102,7 +102,7 @@ bluetooth_settings_row_init (BluetoothSettingsRow *self)
        /* Placeholder text and spinner */
        g_object_bind_property (priv->spinner, "visible",
                                priv->status, "visible", G_BINDING_INVERT_BOOLEAN | G_BINDING_BIDIRECTIONAL);
-       g_object_bind_property (priv->spinner, "active",
+       g_object_bind_property (priv->spinner, "spinning",
                                priv->status, "visible", G_BINDING_INVERT_BOOLEAN | G_BINDING_BIDIRECTIONAL);
 
        priv->time_created = g_get_monotonic_time();
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index d6c86bf5..b9f7d7a5 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -1576,7 +1576,7 @@ add_device_section (BluetoothSettingsWidget *self)
        /* Discoverable spinner */
        priv->device_spinner = spinner = gtk_spinner_new ();
        g_object_bind_property (G_OBJECT (priv->client), "default-adapter-discovering",
-                               G_OBJECT (priv->device_spinner), "active",
+                               G_OBJECT (priv->device_spinner), "spinning",
                                G_BINDING_SYNC_CREATE);
        gtk_widget_set_margin_bottom (spinner, 12);
        gtk_box_append (GTK_BOX (hbox), spinner);
diff --git a/lib/settings.ui b/lib/settings.ui
index 4245f138..e994d540 100644
--- a/lib/settings.ui
+++ b/lib/settings.ui
@@ -53,7 +53,6 @@
                 <property name="show_border">False</property>
                 <child>
                   <object class="GtkSwitch" id="switch_connection">
-                    <property name="use_action_appearance">False</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="halign">start</property>
@@ -231,7 +230,6 @@
         <child>
           <object class="GtkButton" id="send_button">
             <property name="label" translatable="yes">Send _Files…</property>
-            <property name="use_action_appearance">False</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>


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