Focus terminal by default

This commit is contained in:
Marco Pesenti Gritti 2006-11-13 23:16:18 +01:00
parent 32f214c220
commit 44e8d346a4

View File

@ -66,6 +66,9 @@ class Terminal(gtk.HBox):
def on_vte_popup_menu(self, term): def on_vte_popup_menu(self, term):
pass pass
def grab_focus(self):
self._vte.grab_focus()
class TerminalActivity(Activity): class TerminalActivity(Activity):
def __init__(self): def __init__(self):
Activity.__init__(self) Activity.__init__(self)
@ -75,3 +78,5 @@ class TerminalActivity(Activity):
terminal = Terminal() terminal = Terminal()
self.add(terminal) self.add(terminal)
terminal.show() terminal.show()
terminal.grab_focus()