fix focus behaviour when opening chat / groupchat window. Fixes #7115, see #5740

This commit is contained in:
Yann Leboulanger 2012-03-09 08:40:21 +01:00
parent 1d980fa2ef
commit fdb63bcd0c
3 changed files with 0 additions and 3 deletions

View File

@ -469,7 +469,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
self.user_nick = None self.user_nick = None
self.smooth = True self.smooth = True
self.msg_textview.grab_focus()
self.command_hits = [] self.command_hits = []
self.last_key_tabs = False self.last_key_tabs = False

View File

@ -1307,7 +1307,6 @@ class GroupchatControl(ChatControlBase):
self._update_banner_state_image() self._update_banner_state_image()
if self.parent_win: if self.parent_win:
self.parent_win.redraw_tab(self) self.parent_win.redraw_tab(self)
gobject.idle_add(self.msg_textview.grab_focus)
def got_disconnected(self): def got_disconnected(self):
self.list_treeview.set_model(None) self.list_treeview.set_model(None)

View File

@ -307,7 +307,6 @@ class MessageWindow(object):
# NOTE: we do not call set_control_active(True) since we don't know # NOTE: we do not call set_control_active(True) since we don't know
# whether the tab is the active one. # whether the tab is the active one.
self.show_title() self.show_title()
gobject.idle_add(control.msg_textview.grab_focus)
def on_tab_eventbox_button_press_event(self, widget, event, child): def on_tab_eventbox_button_press_event(self, widget, event, child):
if event.button == 3: # right click if event.button == 3: # right click