From 0cea31139a75512a68648d29c3c8e015a8176b0d Mon Sep 17 00:00:00 2001 From: Daniel Sheeler Date: Wed, 22 Jul 2020 23:59:24 -0500 Subject: [PATCH] Set maximum width on ControlGroup label and ellisize it. --- channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel.py b/channel.py index d3666da..6a23ee5 100644 --- a/channel.py +++ b/channel.py @@ -1274,6 +1274,8 @@ class ControlGroup(Gtk.Alignment): self.label = Gtk.Label(output_channel.channel.name) self.label.set_name("label") + self.label.set_max_width_chars(self.input_channel.label_chars_narrow) + self.label.set_ellipsize(Pango.EllipsizeMode.MIDDLE) self.hbox.pack_start(self.label, False, False, button_padding) self.hbox.pack_end(self.buttons_box, False, False, button_padding) mute = Gtk.ToggleButton() -- 2.39.2