home · contact · privacy
In browser, make metadata text non-editable.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 12 Sep 2024 19:06:20 +0000 (21:06 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 12 Sep 2024 19:06:20 +0000 (21:06 +0200)
browser.py

index 7639a0f720c7a185e63f1ef22cd82daceffc41ce..7849f6ba89b153b60f17068a9d344ad8b3a41302 100755 (executable)
@@ -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)