/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to commit.py

  • Committer: Scott Scriven
  • Date: 2008-06-07 08:29:57 UTC
  • mto: This revision was merged to the branch mainline in revision 507.
  • Revision ID: ubuntu@toykeeper.net-20080607082957-df4fgqvwvrcf8kvj
Made 'gcommit' ignore the escape key ('close' signal).

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
                            gtk.gdk.CONTROL_MASK, 0, self._on_accel_next)
304
304
        self.add_accel_group(group)
305
305
 
 
306
        # ignore the escape key (avoid closing the window)
 
307
        self.connect('close', lambda self, *x: self.emit_stop_by_name('close'))
 
308
 
306
309
    def _construct_left_pane(self):
307
310
        self._left_pane_box = gtk.VBox(homogeneous=False, spacing=5)
308
311
        self._construct_file_list()