Make text view not editable

This commit is contained in:
hodasemi 2022-12-18 15:34:59 +01:00
parent bfc28c532f
commit 0d0aafc619

View file

@ -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)