summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-19 22:11:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-19 22:11:55 -0400
commit1a944b28241c128b6c5aa4f5526ce659762292fa (patch)
treebca8690a96b2592275fda558e0b307a0c6e252aa
parentae83b799848c45632a713477a38b36e940982488 (diff)
downloadgtk+-1a944b28241c128b6c5aa4f5526ce659762292fa.tar.gz
stackswitcher: Set accessible label properties
This makes the tabs in about dialogs come out as 'About', 'Credits', and 'System', instead of 'Tab', 'Tab', 'Tab'.
-rw-r--r--gtk/gtkstackswitcher.c4
1 files changed, 4 insertions, 0 deletions
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