a11y: Extend the nested button hack to volume buttons
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 Jun 2023 22:37:10 +0000 (18:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 Jun 2023 22:37:10 +0000 (18:37 -0400)
gtk/gtkatcontext.c

index de217117c2bf5a4837f8c29688bdcd3f13e804bf..3ca70f7b73f509aabebcc3036746dd0e601f84ab 100644 (file)
@@ -46,6 +46,7 @@
 #include "gtkdropdown.h"
 #include "gtkcolordialogbutton.h"
 #include "gtkfontdialogbutton.h"
+#include "gtkscalebutton.h"
 #include "print/gtkprinteroptionwidgetprivate.h"
 
 #if defined(GDK_WINDOWING_X11) || defined(GDK_WINDOWING_WAYLAND)
@@ -1166,7 +1167,8 @@ is_nested_button (GtkATContext *self)
   if ((GTK_IS_TOGGLE_BUTTON (widget) && GTK_IS_DROP_DOWN (parent)) ||
       (GTK_IS_TOGGLE_BUTTON (widget) && GTK_IS_MENU_BUTTON (parent)) ||
       (GTK_IS_BUTTON (widget) && GTK_IS_COLOR_DIALOG_BUTTON (parent)) ||
-      (GTK_IS_BUTTON (widget) && GTK_IS_FONT_DIALOG_BUTTON (parent))
+      (GTK_IS_BUTTON (widget) && GTK_IS_FONT_DIALOG_BUTTON (parent)) ||
+      (GTK_IS_BUTTON (widget) && GTK_IS_SCALE_BUTTON (parent))
 #ifdef G_OS_UNIX
       || (GTK_IS_PRINTER_OPTION_WIDGET (parent) &&
           (GTK_IS_CHECK_BUTTON (widget) ||