[gtk/a11y-debug] stackswitcher: Set accessible label properties



commit 1a944b28241c128b6c5aa4f5526ce659762292fa
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]