From b7e9fb70e306dbcef43e1bc83da13e22e19aa1f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com>
Date: Mon, 19 Mar 2018 19:40:16 +0100
Subject: [PATCH] Limit width of entrys in StartChat Dialog

---
 gajim/dialogs.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gajim/dialogs.py b/gajim/dialogs.py
index 68f4f0bfc0..fd8cd48330 100644
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -34,6 +34,7 @@ from gi.repository import Gdk
 from gi.repository import GdkPixbuf
 from gi.repository import GObject
 from gi.repository import GLib
+from gi.repository import Pango
 
 import os
 import nbxmpp
@@ -3023,6 +3024,9 @@ class ContactRow(Gtk.Grid):
                 self.name = _('New Contact')
 
         self.name_label = Gtk.Label(self.name)
+        self.name_label.set_ellipsize(Pango.EllipsizeMode.END)
+        self.name_label.set_xalign(0)
+        self.name_label.set_width_chars(25)
         self.name_label.set_halign(Gtk.Align.START)
         self.name_label.get_style_context().add_class('bold16')
 
@@ -3033,6 +3037,9 @@ class ContactRow(Gtk.Grid):
         middle_box.add(self.name_label)
 
         self.jid_label = Gtk.Label(jid)
+        self.jid_label.set_ellipsize(Pango.EllipsizeMode.END)
+        self.jid_label.set_xalign(0)
+        self.jid_label.set_width_chars(25)
         self.jid_label.set_halign(Gtk.Align.START)
         middle_box.add(self.jid_label)
 
-- 
GitLab