grab focus into the text entry widget after creating it

This commit is contained in:
Chris Jones 2009-03-23 21:09:40 +00:00
parent 254d0782c5
commit e912c6a239

View File

@ -147,6 +147,7 @@ class TerminatorNotebookTabLabel(gtk.HBox):
self._notebook.connect ("switch-page", self.entry_to_label)
self._entry.connect ("activate", self.on_entry_activated)
self._entry.connect ("key-press-event", self.on_entry_keypress)
self._entry.grab_focus ()
def entry_to_label (self, widget, page, page_num):
if (self._entry):