diff --git a/src/groupchat_window.py b/src/groupchat_window.py index bd8cc6def..2caa806ab 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -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('%s\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)