From 1a7b1672a7c27ee44848329689d6b737afa864ba Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Thu, 20 Dec 2007 03:11:44 +0000 Subject: [PATCH] Use show_all on the notebook and not the window when a new tab is added. For example, if the roster is hidden in single UI mode and a new chat arrived the roster would unhide. --- src/message_window.py | 2 +- src/roster_window.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message_window.py b/src/message_window.py index ebb5262df..a1ed6b658 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -238,7 +238,7 @@ class MessageWindow(object): self.setup_tab_dnd(control.widget) self.redraw_tab(control) - self.window.show_all() + self.notebook.show_all() # NOTE: we do not call set_control_active(True) since we don't know whether # the tab is the active one. self.show_title() diff --git a/src/roster_window.py b/src/roster_window.py index 61211170e..0c424cd26 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1244,7 +1244,7 @@ class RosterWindow: item.set_image(icon) item.connect('activate', self.on_join_gc_activate, account) gc_sub_menu.append(item) - + if len(gajim.connections[account].bookmarks) > 0: # user has at least one bookmark item = gtk.SeparatorMenuItem() # separator gc_sub_menu.append(item)