[gtk/gtk-4-2: 54/91] stackswitcher: Set accessible label properties
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-2: 54/91] stackswitcher: Set accessible label properties
- Date: Tue, 4 May 2021 02:05:41 +0000 (UTC)
commit f6bec2edf27a0c62deafdea08627f52040a034ec
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 19 22:11:55 2021 -0400
stackswitcher: Set accessible label properties
This makes the tabs in about dialogs come out as
'About', 'Credits', and 'System', instead of
'Tab', 'Tab', 'Tab'.
gtk/gtkstackswitcher.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index e0896a74f0..7ce0efb109 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -154,6 +154,10 @@ rebuild_child (GtkWidget *self,
gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER);
gtk_button_set_child (GTK_BUTTON (self), button_child);
}
+
+ gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, title,
+ -1);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]