Rev 507: merge fix to make gcommit ignore the close signal. in file:///data/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Sat Jun 28 16:42:52 BST 2008


At file:///data/jelmer/bzr-gtk/trunk/

------------------------------------------------------------
revno: 507
revision-id: jelmer at samba.org-20080628154251-lys6wjk0tz4uso8i
parent: szilveszter.farkas at gmail.com-20080628074310-31znzgsw5o99r3x0
parent: ubuntu at toykeeper.net-20080607090024-sg8nzg1hgqmzj27v
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                      commit.py-20060721181724-0mfkrqwpsa09q1t3-3
    ------------------------------------------------------------
    revno: 500.2.2
    revision-id: ubuntu at toykeeper.net-20080607090024-sg8nzg1hgqmzj27v
    parent: ubuntu at toykeeper.net-20080607082957-df4fgqvwvrcf8kvj
    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                      commit.py-20060721181724-0mfkrqwpsa09q1t3-3
    ------------------------------------------------------------
    revno: 500.2.1
    revision-id: ubuntu at toykeeper.net-20080607082957-df4fgqvwvrcf8kvj
    parent: daniel.schierbeck at gmail.com-20080606214232-n3bc7s1dn091o24c
    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                      commit.py-20060721181724-0mfkrqwpsa09q1t3-3
=== 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 bazaar-commits mailing list