bugfix when we begin a new chat, show the window
This commit is contained in:
parent
e2c6bdedec
commit
119cbe0eb9
|
@ -880,8 +880,6 @@ class Roster_window:
|
||||||
|
|
||||||
self.plugin.windows[account]['chats'][user.jid] = \
|
self.plugin.windows[account]['chats'][user.jid] = \
|
||||||
self.plugin.windows[account]['chats']['tabbed']
|
self.plugin.windows[account]['chats']['tabbed']
|
||||||
self.plugin.windows[account]['chats']['tabbed'].window.present()
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.plugin.windows[account]['chats'][user.jid] = \
|
self.plugin.windows[account]['chats'][user.jid] = \
|
||||||
tabbed_chat_window.Tabbed_chat_window(user, self.plugin, account)
|
tabbed_chat_window.Tabbed_chat_window(user, self.plugin, account)
|
||||||
|
|
|
@ -54,6 +54,7 @@ class Tabbed_chat_window(chat.Chat):
|
||||||
self.on_chat_notebook_key_press_event)
|
self.on_chat_notebook_key_press_event)
|
||||||
self.xml.signal_connect('on_chat_notebook_switch_page', \
|
self.xml.signal_connect('on_chat_notebook_switch_page', \
|
||||||
self.on_chat_notebook_switch_page)
|
self.on_chat_notebook_switch_page)
|
||||||
|
self.window.show_all()
|
||||||
|
|
||||||
def draw_widgets(self, user):
|
def draw_widgets(self, user):
|
||||||
"""draw the widgets in a tab (status_image, contact_button ...)
|
"""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(user.jid)
|
||||||
self.print_time_timeout_id[user.jid] = gobject.timeout_add(300000, \
|
self.print_time_timeout_id[user.jid] = gobject.timeout_add(300000, \
|
||||||
self.print_time_timeout, user.jid)
|
self.print_time_timeout, user.jid)
|
||||||
|
self.childs[user.jid].show_all()
|
||||||
|
|
||||||
def on_message_textview_key_press_event(self, widget, event):
|
def on_message_textview_key_press_event(self, widget, event):
|
||||||
"""When a key is pressed:
|
"""When a key is pressed:
|
||||||
|
|
Loading…
Reference in New Issue