From: Matthias Clasen Date: Thu, 22 Jun 2023 22:37:10 +0000 (-0400) Subject: a11y: Extend the nested button hack to volume buttons X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~107^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=318cf132e9def97be8360d4013e54658028f29bc;p=gtk4.git a11y: Extend the nested button hack to volume buttons --- diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c index de217117c2..3ca70f7b73 100644 --- a/gtk/gtkatcontext.c +++ b/gtk/gtkatcontext.c @@ -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) ||