Skip to content

Commit 5151140

Browse files
committed
Pointing: fix screen reader for pointer size options
1 parent 4bcfcba commit 5151140

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/Views/Pointing.vala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage {
6363
};
6464
cursor_size_48.add_css_class ("image-button");
6565

66-
var cursor_size_box = new Gtk.Box (HORIZONTAL, 24);
66+
var cursor_size_box = new Granite.Box (HORIZONTAL, DOUBLE);
6767
cursor_size_box.append (cursor_size_24);
6868
cursor_size_box.append (cursor_size_32);
6969
cursor_size_box.append (cursor_size_48);
7070

71+
var cursor_size_header = new Granite.HeaderLabel (_("Pointer Size")) {
72+
mnemonic_widget = cursor_size_box
73+
};
74+
7175
var reveal_pointer_switch = new Gtk.Switch () {
7276
halign = END,
7377
valign = CENTER
@@ -82,7 +86,7 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage {
8286
row_spacing = 6
8387
};
8488

85-
content_area.attach (new Granite.HeaderLabel (_("Pointer Size")), 0, 0);
89+
content_area.attach (cursor_size_header, 0, 0);
8690
content_area.attach (cursor_size_box, 0, 1);
8791

8892
content_area.attach (reveal_pointer_label, 0, 2);

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ shared_module(
2020
dependency('glib-2.0'),
2121
dependency('gio-2.0'),
2222
dependency('gobject-2.0'),
23-
dependency('granite-7', version: '>=7.4.0'),
23+
dependency('granite-7', version: '>=7.7.0'),
2424
dependency('gtk4'),
2525
dependency('libxml-2.0'),
2626
switchboard_dep

0 commit comments

Comments
 (0)