From: Christian Heller Date: Thu, 12 Sep 2024 19:06:20 +0000 (+0200) Subject: In browser, make metadata text non-editable. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/process?a=commitdiff_plain;h=8e38917fdf95bbc46842f287f53614142b90ae43;p=stable_plom In browser, make metadata text non-editable. --- 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)