put ... when subject is too long. thanks to Liorithiel

This commit is contained in:
Nikos Kouremenos 2005-06-20 10:37:13 +00:00
parent 9f03fc4f98
commit 53e59fe8a4
1 changed files with 3 additions and 3 deletions

View File

@ -146,9 +146,6 @@ class GroupchatWindow(chat.Chat):
new_jid = new_jid.replace('&', '&')
name_label = self.name_labels[new_jid]
#FIXME: when gtk2.4 is OOOOLD do it via glade2.10+
if gtk.pygtk_version >= (2, 6, 0) and gtk.gtk_version >= (2, 6, 0):
name_label.set_max_width_chars(90)
name_label.set_markup('<span weight="heavy" size="x-large">%s</span>\n%s' % (new_jid, subject))
event_box = name_label.get_parent()
self.subject_tooltip[new_jid].set_tip(event_box, subject)
@ -768,6 +765,9 @@ class GroupchatWindow(chat.Chat):
self.name_labels[room_jid] = self.xmls[room_jid].get_widget(
'banner_name_label')
self.paint_banner(room_jid)
#FIXME: when gtk2.4 is OOOOLD do it via glade2.10+
if gtk.pygtk_version >= (2, 6, 0) and gtk.gtk_version >= (2, 6, 0):
self.name_labels[room_jid].set_ellipsize(pango.ELLIPSIZE_END)
# connect the menuitems to their respective functions
xm = gtk.glade.XML(GTKGUI_GLADE, 'gc_actions_menu', APP)