[gnome-bluetooth] settings: Switch to new GtkAccessible API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] settings: Switch to new GtkAccessible API
- Date: Thu, 28 Oct 2021 15:29:59 +0000 (UTC)
commit bfb8803ba3ae92a711c392046fd753932eaf2a4d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 27 13:44:20 2021 -0300
settings: Switch to new GtkAccessible API
GTK4 doesn't rely on ATK objects anymore, switch to GtkAccessible
in the only place it's used. There's no "label-for" relation anymore,
only "labelled-by".
lib/bluetooth-settings-widget.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 782f43a2..e36ca851 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -1579,12 +1579,9 @@ add_device_section (BluetoothSettingsWidget *self)
(GtkListBoxSortFunc)device_sort_func, NULL, NULL);
g_signal_connect_swapped (priv->device_list, "row-activated",
G_CALLBACK (activate_row), self);
- atk_object_add_relationship (ATK_OBJECT (gtk_widget_get_accessible (priv->device_label)),
- ATK_RELATION_LABEL_FOR,
- ATK_OBJECT (gtk_widget_get_accessible (priv->device_list)));
- atk_object_add_relationship (ATK_OBJECT (gtk_widget_get_accessible (priv->device_list)),
- ATK_RELATION_LABELLED_BY,
- ATK_OBJECT (gtk_widget_get_accessible (priv->device_label)));
+ gtk_accessible_update_relation (GTK_ACCESSIBLE (priv->device_list),
+ GTK_ACCESSIBLE_RELATION_LABELLED_BY, priv->device_label, NULL,
+ -1);
priv->device_stack = gtk_stack_new ();
gtk_stack_set_homogeneous (GTK_STACK (priv->device_stack), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]