changeset df0845a7b449 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=df0845a7b449 description: set the focus when the first tab is opened
diffstat:
data/gui/message_window.ui | 1 - src/message_window.py | 3 +-- 2 files changed, 1 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 0e4f8195b061 -r df0845a7b449 data/gui/message_window.ui --- a/data/gui/message_window.ui Fri Aug 24 17:26:00 2012 +0400 +++ b/data/gui/message_window.ui Fri Aug 24 18:21:38 2012 +0400 @@ -12,7 +12,6 @@ <child> <object class="GtkNotebook" id="notebook"> <property name="visible">True</property> - <property name="can_focus">True</property> <property name="scrollable">True</property> <property name="tab_border">0</property> </object> diff -r 0e4f8195b061 -r df0845a7b449 src/message_window.py --- a/src/message_window.py Fri Aug 24 17:26:00 2012 +0400 +++ b/src/message_window.py Fri Aug 24 18:21:38 2012 +0400 @@ -144,8 +144,6 @@ self.notebook.set_show_border(gajim.config.get('tabs_border')) self.show_icon()
- gobject.idle_add(self.notebook.grab_focus) - def change_account_name(self, old_name, new_name): if old_name in self._controls: self._controls[new_name] = self._controls[old_name] @@ -307,6 +305,7 @@ # NOTE: we do not call set_control_active(True) since we don't know # whether the tab is the active one. self.show_title() + gobject.timeout_add(500, control.msg_textview.grab_focus)
def on_tab_eventbox_button_press_event(self, widget, event, child): if event.button == 3: # right click