summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2021-10-27 15:41:38 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2021-10-28 11:23:46 -0300
commitb592d09343f8ee9bb6627762db114b0f9f990461 (patch)
tree5452d4071ca09e5b9c4700177dff8d581d74a3b2 /lib
parentf3e1fc0abc676a6f53762b06d82e99afa0cf1d39 (diff)
downloadgnome-bluetooth-b592d09343f8ee9bb6627762db114b0f9f990461.tar.gz
lib: Adapt to GtkSwitch API changes
The "active" property is now "spinning", and "use_action_appearance" doesn't exist anymore.
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-pairing-dialog.c2
-rw-r--r--lib/bluetooth-settings-row.c2
-rw-r--r--lib/bluetooth-settings-widget.c2
-rw-r--r--lib/settings.ui2
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>