diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-10 12:40:49 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-10 12:40:49 (GMT) |
commit | d958e20df74edeedaaa345e40513dcba7b80d3af (patch) | |
tree | 7a02e44b6d0b89331e70f946d88e198deeaff416 | |
parent | 028bf526f27d1352fa6d71bdb2540311e02b7e77 (diff) |
Make work enter on first time dialog. Fix for bug #324.
-rw-r--r-- | shell/view/FirstTimeDialog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/view/FirstTimeDialog.py b/shell/view/FirstTimeDialog.py index 463114a..267a661 100644 --- a/shell/view/FirstTimeDialog.py +++ b/shell/view/FirstTimeDialog.py @@ -34,6 +34,7 @@ class FirstTimeDialog(gtk.Dialog): self._entry = gtk.Entry() self._entry.connect('changed', self._entry_changed_cb) + self._entry.connect('activate', self._entry_activated_cb) self.vbox.pack_start(self._entry) self._entry.show() @@ -47,7 +48,13 @@ class FirstTimeDialog(gtk.Dialog): valid = (len(entry.get_text()) > 0) self._ok.set_sensitive(valid) + def _entry_activated_cb(self, entry): + self._create_buddy_section() + def _ok_button_clicked_cb(self, button): + self._create_buddy_section() + + def _create_buddy_section(self): cp = ConfigParser() section = 'Buddy' |