Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e0f88625 by Philipp Hörist at 2025-08-30T20:14:52+02:00
cfix: SideBarSwitcher: Limit menu label length
- - - - -
1 changed file:
- gajim/gtk/sidebar_switcher.py
Changes:
=====================================
gajim/gtk/sidebar_switcher.py
=====================================
@@ -10,6 +10,7 @@
from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Gtk
+from gi.repository import Pango
from gajim.common import app
from gajim.common.i18n import _
@@ -275,7 +276,13 @@ def __init__(
image = Gtk.Image.new_from_icon_name(icon_name)
box.append(image)
- self._label = Gtk.Label(label=title, xalign=0, hexpand=True)
+ self._label = Gtk.Label(
+ label=title,
+ xalign=0,
+ hexpand=True,
+ ellipsize=Pango.EllipsizeMode.END,
+ max_width_chars=20,
+ )
box.append(self._label)
self._suffix_image = Gtk.Image.new_from_icon_name(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e0f88625a4f6c870495918a6c6d6c9aade94f42a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e0f88625a4f6c870495918a6c6d6c9aade94f42a
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]