From 05a55cfffaffa6b3d83754af4fabd0c829743ccd Mon Sep 17 00:00:00 2001 From: alfrix Date: Wed, 29 Nov 2023 19:28:10 -0300 Subject: [PATCH] notifications: enable wrap --- panels/notifications.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/panels/notifications.py b/panels/notifications.py index 64d33880..5be1c30f 100644 --- a/panels/notifications.py +++ b/panels/notifications.py @@ -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()