notifications: enable wrap

This commit is contained in:
alfrix 2023-11-29 19:28:10 -03:00
parent 670ebce06a
commit 05a55cfffa

View File

@ -22,10 +22,8 @@ class Panel(ScreenPanel):
super().__init__(screen, title)
self.empty = _("Notification log empty")
self.tb = Gtk.TextBuffer(text=self.empty)
tv = Gtk.TextView()
tv = Gtk.TextView(editable=False, cursor_visible=False, wrap_mode=Gtk.WrapMode.WORD_CHAR)
tv.set_buffer(self.tb)
tv.set_editable(False)
tv.set_cursor_visible(False)
tv.connect("size-allocate", self._autoscroll)
scroll = Gtk.ScrolledWindow()