[Pkg-bazaar-commits] ./bzr-gtk/unstable r507: merge fix to make gcommit ignore the close signal.

Jelmer Vernooij jelmer at samba.org
Fri Apr 10 07:44:41 UTC 2009


------------------------------------------------------------
revno: 507
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-06-28 17:42:51 +0200
message:
  merge fix to make gcommit ignore the close signal.
modified:
  commit.py
    ------------------------------------------------------------
    revno: 500.2.1
    committer: Scott Scriven <ubuntu at toykeeper.net>
    branch nick: bzr-gtk
    timestamp: Sat 2008-06-07 02:29:57 -0600
    message:
      Made 'gcommit' ignore the escape key ('close' signal).
    modified:
      commit.py
    ------------------------------------------------------------
    revno: 500.2.2
    committer: Scott Scriven <ubuntu at toykeeper.net>
    branch nick: bzr-gtk
    timestamp: Sat 2008-06-07 03:00:24 -0600
    message:
      Simpler/cleaner way to ignore the 'close' signal.
    modified:
      commit.py
-------------- next part --------------
=== modified file 'commit.py'
--- a/commit.py	2008-05-05 18:16:46 +0000
+++ b/commit.py	2008-06-07 09:00:24 +0000
@@ -303,6 +303,9 @@
                             gtk.gdk.CONTROL_MASK, 0, self._on_accel_next)
         self.add_accel_group(group)
 
+        # ignore the escape key (avoid closing the window)
+        self.connect_object('close', self.emit_stop_by_name, 'close')
+
     def _construct_left_pane(self):
         self._left_pane_box = gtk.VBox(homogeneous=False, spacing=5)
         self._construct_file_list()



More information about the Pkg-bazaar-commits mailing list