[libadwaita/wip/exalm/a11y-fixes: 1/11] view-switcher-button: Set mnemonic in init()




commit 4c4432a6f7953b48f593158d89f4933891627cfb
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Dec 27 17:16:01 2021 +0500

    view-switcher-button: Set mnemonic in init()
    
    We need it to be correct before the first horizontal->vertical orientation
    change as well.

 src/adw-view-switcher-button.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/adw-view-switcher-button.c b/src/adw-view-switcher-button.c
index ed10d076..0617c8d6 100644
--- a/src/adw-view-switcher-button.c
+++ b/src/adw-view-switcher-button.c
@@ -360,6 +360,7 @@ adw_view_switcher_button_init (AdwViewSwitcherButton *self)
   gtk_stack_set_visible_child (GTK_STACK (self->stack), GTK_WIDGET (self->horizontal_box));
 
   gtk_widget_set_focus_on_click (GTK_WIDGET (self), FALSE);
+  update_mnemonic (self);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]