bugfix when we begin a new chat, show the window

This commit is contained in:
Yann Leboulanger 2005-04-27 13:50:13 +00:00
parent e2c6bdedec
commit 119cbe0eb9
2 changed files with 2 additions and 2 deletions

View File

@ -880,8 +880,6 @@ class Roster_window:
self.plugin.windows[account]['chats'][user.jid] = \
self.plugin.windows[account]['chats']['tabbed']
self.plugin.windows[account]['chats']['tabbed'].window.present()
else:
self.plugin.windows[account]['chats'][user.jid] = \
tabbed_chat_window.Tabbed_chat_window(user, self.plugin, account)

View File

@ -54,6 +54,7 @@ class Tabbed_chat_window(chat.Chat):
self.on_chat_notebook_key_press_event)
self.xml.signal_connect('on_chat_notebook_switch_page', \
self.on_chat_notebook_switch_page)
self.window.show_all()
def draw_widgets(self, user):
"""draw the widgets in a tab (status_image, contact_button ...)
@ -155,6 +156,7 @@ class Tabbed_chat_window(chat.Chat):
self.print_time_timeout(user.jid)
self.print_time_timeout_id[user.jid] = gobject.timeout_add(300000, \
self.print_time_timeout, user.jid)
self.childs[user.jid].show_all()
def on_message_textview_key_press_event(self, widget, event):
"""When a key is pressed: