/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 09:00:24 UTC
  • mto: This revision was merged to the branch mainline in revision 507.
  • Revision ID: ubuntu@toykeeper.net-20080607090024-sg8nzg1hgqmzj27v
Simpler/cleaner way to ignore the 'close' signal.

Show diffs side-by-side

added added

removed removed

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