[fractal] Message Widget: Don't highlight matching brackets
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Message Widget: Don't highlight matching brackets
- Date: Wed, 3 Feb 2021 00:56:02 +0000 (UTC)
commit 2276b85228e2e0f0da37c6d4122dc6ff67674df6
Author: Maximiliano Sandoval R <msandova protonmail com>
Date: Thu Oct 22 13:14:37 2020 +0200
Message Widget: Don't highlight matching brackets
fractal-gtk/src/widgets/message.rs | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/fractal-gtk/src/widgets/message.rs b/fractal-gtk/src/widgets/message.rs
index e5fbd6a4..db66185b 100644
--- a/fractal-gtk/src/widgets/message.rs
+++ b/fractal-gtk/src/widgets/message.rs
@@ -18,6 +18,7 @@ use gtk::{prelude::*, ButtonExt, ContainerExt, LabelExt, Overlay, WidgetExt};
use html2pango::block::{HtmlBlock, markup_html};
use itertools::Itertools;
use matrix_sdk::Client as MatrixClient;
+use sourceview4::BufferExt;
use std::cmp::max;
use std::rc::Rc;
@@ -571,6 +572,7 @@ fn render_html_block(block: &HtmlBlock) -> gtk::Widget {
}
HtmlBlock::Code(s) => {
let buffer = sourceview4::Buffer::new::<gtk::TextTagTable>(None);
+ buffer.set_highlight_matching_brackets(false);
buffer.set_text(&s);
let view = sourceview4::View::with_buffer(&buffer);
view.set_editable(false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]