mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Merge branch 'always-more-a11y-fixes' into 'main'
scalebutton: Use the group role See merge request GNOME/gtk!6138
This commit is contained in:
commit
24bbaceaa4
@ -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) ||
|
||||
|
@ -374,6 +374,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, cb_popup_mapped);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, I_("scalebutton"));
|
||||
gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user