From 037199e30a50de80f7b654cdf5ef2282acb4faa7 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 2 Jun 2005 16:30:18 +0000 Subject: [PATCH] Do not let long nicknames take all the space in notebook --- src/chat.py | 4 ++++ src/dialogs.py | 1 + src/gtkgui.glade | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/chat.py b/src/chat.py index 823c02e98..1d4526cf2 100644 --- a/src/chat.py +++ b/src/chat.py @@ -121,6 +121,10 @@ class Chat: elif self.widget_name == 'groupchat_window': nickname = self.notebook.get_tab_label(child).get_children()[0] + #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): + nickname.set_max_width_chars(15) + nickname.set_text(start + self.names[jid]) def on_window_destroy(self, widget, kind): #kind is 'chats' or 'gc' diff --git a/src/dialogs.py b/src/dialogs.py index 220746ac6..5e7325865 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -366,6 +366,7 @@ class About_dialog: '''Class for about dialog''' def __init__(self): if gtk.pygtk_version < (2, 6, 0): + #FIXME: when 0.7.1 is out fix this [add version in _] Information_dialog(_('Gajim - a GTK+ Jabber client') + '\nVersion %s' \ % gajim.version) return diff --git a/src/gtkgui.glade b/src/gtkgui.glade index c0579d2af..606ae9284 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -9354,7 +9354,7 @@ Custom True False - 5 + 4 @@ -9368,8 +9368,8 @@ Custom 0 - True - True + False + False