From 8e38917fdf95bbc46842f287f53614142b90ae43 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 12 Sep 2024 21:06:20 +0200 Subject: [PATCH] In browser, make metadata text non-editable. --- browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser.py b/browser.py index 7639a0f..7849f6b 100755 --- a/browser.py +++ b/browser.py @@ -156,8 +156,8 @@ class MainWindow(Gtk.Window): return scroller def init_metadata_box(): - text_view = Gtk.TextView() - text_view.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) + text_view = Gtk.TextView(wrap_mode=Gtk.WrapMode.WORD_CHAR, + editable=False) text_view.set_size_request(200, -1) self.metadata = text_view.get_buffer() metadata_box = Gtk.Box(orientation=OR_V) -- 2.30.2