Skip to content

Commit

Permalink
fix(lww): label measuring when pango wrap is word_char
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Oct 21, 2024
1 parent 3f38e4f commit 12728be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Widgets/LabelWithWidgets.vala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
construct {
label = new Gtk.Label ("") {
wrap = true,
wrap_mode = Pango.WrapMode.WORD_CHAR,
wrap_mode = Pango.WrapMode.WORD,
xalign = 0.0f,
valign = Gtk.Align.START,
use_markup = false,
Expand Down Expand Up @@ -246,7 +246,7 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce

if (old_label != new_label) {
label.wrap = true;
label.wrap_mode = Pango.WrapMode.WORD_CHAR;
label.wrap_mode = Pango.WrapMode.WORD;

_text = new_label;
label.label = _text;
Expand Down

0 comments on commit 12728be

Please sign in to comment.