From 1746e74822c329e17fda54bcf665d9e6d3483de3 Mon Sep 17 00:00:00 2001 From: Jason Perlow Date: Sun, 11 Oct 2026 11:26:47 -0400 Subject: [PATCH] fix(a11y): implement the GtkAccessibleText vfuncs added in GTK 4.22 GTK 4.22 added get_default_attributes, get_extents, get_offset, set_caret_position and set_selection to GtkAccessibleText, and Vala 0.56 declares them abstract, so WriteDocView no longer builds against GTK 4.24. Report each as unsupported. Assisted-by: DeepSeek:deepseek-flash AI-Scope: implemented the five GtkAccessibleText vfuncs GTK 4.22 added, each reporting unsupported. --- src/ui/doc_view.vala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/ui/doc_view.vala b/src/ui/doc_view.vala index 588089f..c645683 100644 --- a/src/ui/doc_view.vala +++ b/src/ui/doc_view.vala @@ -2062,5 +2062,27 @@ namespace Singularity.Apps { attribute_values = {}; return false; } + + public void get_default_attributes(out string[] attribute_names, out string[] attribute_values) { + attribute_names = {}; + attribute_values = {}; + } + + public bool get_extents(uint start, uint end, Graphene.Rect extents) { + return false; + } + + public bool get_offset(Graphene.Point point, out uint offset) { + offset = 0; + return false; + } + + public bool set_caret_position(uint offset) { + return false; + } + + public bool set_selection(size_t i, Gtk.AccessibleTextRange range) { + return false; + } } }