From 0cd78b9d0c5b2b3c105b0f5ba8911f956e652669 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Thu, 26 Dec 2024 16:31:03 +0100 Subject: [PATCH] ui: Disable highlight matching brackets in source buffer Highlight matching brackets causes a crash when subclassing a GtkSourceBuffer. See https://gitlab.gnome.org/World/Rust/sourceview5-rs/-/issues/11 --- aardvark-app/src/window.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aardvark-app/src/window.rs b/aardvark-app/src/window.rs index 8ad8365..5d6f9dc 100644 --- a/aardvark-app/src/window.rs +++ b/aardvark-app/src/window.rs @@ -69,6 +69,9 @@ mod imp { let markdown = language_manager.language("markdown"); buffer.set_language(markdown.as_ref()); + // FIXME: When using subclassing highlight matching brackets causes a crash + // See: https://gitlab.gnome.org/World/Rust/sourceview5-rs/-/issues/11 + buffer.set_highlight_matching_brackets(false); self.text_view.set_buffer(Some(&buffer));