Index: PreferenceWindow.py =================================================================== --- PreferenceWindow.py (revision 1342) +++ PreferenceWindow.py (working copy) @@ -322,6 +322,7 @@ self.proxySettings.save() + class ThemesTab(gtk.VBox): '''This class represent the tab that ...''' @@ -617,6 +618,7 @@ mkcheck(self, 'showTabCloseButton', _('Show close button on _each tab')) mkcheck(self, 'avatarsInUserList', _('Show _avatars')) mkcheck(self, 'avatarsInTaskbar', _('Show avatars in task_bar')) + mkcheck(self, 'hideNewWindow', _('Hide new conversation window automatically')) #mkcheck(self, 'showMailTyping', _('Show ma_il on "is typing" message')) #mkcheck(self, 'disableEsc', _('Don\'t _close by pressing ESC')) Index: ConversationManager.py =================================================================== --- ConversationManager.py (revision 1342) +++ ConversationManager.py (working copy) @@ -63,6 +63,7 @@ sap(self.config.connect('change::showStatusBar', self.updateUI)) sap(self.config.connect('change::showTabCloseButton', self.updateUI)) sap(self.config.connect('change::showSendButton', self.updateUI)) + sap(self.config.connect('change::hideNewWindow', self.updateUI)) self.controller.connect('preferences-changed', self.updateUI) @@ -128,11 +129,10 @@ # Gnome does not support calling iconify() before show() (?) # so we call it before and after, other WMs may support it... - if not weStarted: + if self.config.user['hideNewWindow']: window.iconify() window.show() - if not weStarted: - window.iconify() + conversation.setWindow(window) window.set_icon(conversation.getWindowIcon()) Index: Config.py =================================================================== --- Config.py (revision 1342) +++ Config.py (working copy) @@ -96,6 +96,7 @@ 'showTabCloseButton' : True, # TODO: w/o signal 'avatarsInUserList' : True, # TODO: w/o signal 'avatarsInTaskbar' : False, + 'hideNewWindow' : False, 'showMailTyping' : True, 'showSendButton' : False,