From 0d0aafc61940c6ca9631f9ec21f13f5aa50b6955 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Sun, 18 Dec 2022 15:34:59 +0100 Subject: [PATCH] Make text view not editable --- rust/serial_reader/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/serial_reader/src/main.rs b/rust/serial_reader/src/main.rs index 47b64cc..d76ceca 100644 --- a/rust/serial_reader/src/main.rs +++ b/rust/serial_reader/src/main.rs @@ -40,6 +40,7 @@ fn main() { let connect_button = Button::with_label("Connect"); let reset_button = Button::with_label("Reset"); let serial_info = TextView::new(); + serial_info.set_editable(false); let scrolled_window = ScrolledWindow::builder() .vscrollbar_policy(PolicyType::Automatic) .child(&serial_info)