From ba5e4dbd3f94863ebcad31f643d545db3ee9137f Mon Sep 17 00:00:00 2001
From: Julien Pivotto <roidelapluie@esquimaux.be>
Date: Mon, 11 Jun 2007 10:53:56 +0000
Subject: [PATCH] Add code removed by mistake in [8263].

---
 src/roster_window.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/roster_window.py b/src/roster_window.py
index 9940c02f3a..ccc6a6208b 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -16,6 +16,7 @@
 ##
 
 import gtk
+import pango
 import gobject
 import os
 import time
@@ -1186,6 +1187,8 @@ class RosterWindow:
 		for acct in gajim.connections:
 			self.add_account_to_roster(acct)
 			self.add_account_contacts(acct)
+		# Recalculate column width for ellipsizing
+		self.tree.columns_autosize()
 
 	def add_account_contacts(self, account):
 		'''adds contacts of group to roster treeview'''
@@ -5039,6 +5042,7 @@ class RosterWindow:
 		col.set_cell_data_func(render_image, self.iconCellDataFunc, None)
 
 		render_text = gtk.CellRendererText() # contact or group or account name
+		render_text.set_property("ellipsize", pango.ELLIPSIZE_END)
 		col.pack_start(render_text, expand = True)
 		col.add_attribute(render_text, 'markup', C_NAME) # where we hold the name
 		col.set_cell_data_func(render_text, self.nameCellDataFunc, None)
-- 
GitLab