diff options
Diffstat (limited to 'src/message.py')
-rw-r--r-- | src/message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message.py b/src/message.py index 5f70b9e..e61957d 100644 --- a/src/message.py +++ b/src/message.py @@ -16,7 +16,7 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # # SPDX-License-Identifier: GPL-3.0-or-later -from gi.repository import Adw, Gtk, GLib +from gi.repository import Adw, Gtk, GLib, Pango import re @@ -71,8 +71,8 @@ class WeegtkMessage(Gtk.Box): first = False markuped = self.parse_message(message) msg = Gtk.Label(label=markuped, selectable=True, - wrap=True, halign=0, hexpand=True, hexpand_set=True, - xalign=0, margin_top=margin, use_markup=True) + wrap=True, wrap_mode=Pango.WrapMode.WORD_CHAR, xalign=0, + margin_top=margin, use_markup=True) self.message_list.append(msg) |