Skip to content

Commit

Permalink
fix(Status): overflow on large names
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Sep 6, 2023
1 parent 393e93f commit ecaad19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/ui/widgets/status.ui
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
<child>
<object class="TubaWidgetsRichLabel" id="name_label">
<property name="visible">True</property>
<property name="ellipsize">True</property>
<property name="ellipsize">0</property>
<property name="smaller-emoji-pixel-size">True</property>
<property name="lines">-1</property>
<property name="lines">100</property>
<style>
<class name="font-bold" />
</style>
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/LabelWithWidgets.vala
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
return _ellipsize;
}
set {
if (_ellipsize == value) return;

_ellipsize = value;
update_label ();
}
Expand All @@ -58,6 +60,8 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
return _use_markup;
}
set {
if (_use_markup == value) return;

_use_markup = value;
label.use_markup = _use_markup;
}
Expand Down

0 comments on commit ecaad19

Please sign in to comment.