Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

init: add accelerators of buttons

The original code from 'update.py'.

Changeset 6806f955d148

Parent 9db445218e3d

by Yuki KODAMA

Changes to one file · Browse files at 6806f955d148 Showing diff from parent 9db445218e3d Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hginit.py Stacked
 
83
84
85
 
 
 
 
 
86
87
88
89
 
 
 
 
90
91
92
 
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@@ -83,10 +83,19 @@
    close = gtk.Button(_('Close'))   close.connect('clicked', lambda x: self.destroy()) + accelgroup = gtk.AccelGroup() + self.add_accel_group(accelgroup) + key, modifier = gtk.accelerator_parse('Escape') + close.add_accelerator('clicked', accelgroup, key, 0, + gtk.ACCEL_VISIBLE)   hbbox.add(close)     create = gtk.Button(_('Create'))   create.connect('clicked', self._btn_init_clicked) + mod = gtklib.get_thg_modifier() + key, modifier = gtk.accelerator_parse(mod+'Return') + create.add_accelerator('clicked', accelgroup, key, modifier, + gtk.ACCEL_VISIBLE)   hbbox.add(create)     def _btn_dest_clicked(self, button):