[Pkg-bazaar-commits] ./bzr-gtk/unstable r17: stop managing windows so much, just quit when the viz window is closed
Scott James Remnant
scott at netsplit.com
Fri Apr 10 07:15:26 UTC 2009
------------------------------------------------------------
revno: 17
committer: Scott James Remnant <scott at netsplit.com>
timestamp: Tue 2005-10-18 13:21:57 +0100
message:
stop managing windows so much, just quit when the viz window is closed
and close all the diff windows too
modified:
bzrkapp.py
-------------- next part --------------
=== modified file 'bzrkapp.py'
--- a/bzrkapp.py 2005-10-17 07:55:01 +0000
+++ b/bzrkapp.py 2005-10-18 12:21:57 +0000
@@ -27,15 +27,10 @@
the last window is closed.
"""
- def __init__(self):
- self._num_windows = 0
-
def show(self, branch, start):
"""Open a new window to show the given branch."""
window = BranchWindow(self)
window.set_branch(branch, start)
-
- self._num_windows += 1
window.connect("destroy", self._destroy_cb)
window.show()
@@ -43,16 +38,11 @@
"""Open a new window to show a diff between the given revisions."""
window = DiffWindow(self)
window.set_diff(branch, revid, parentid)
-
- self._num_windows += 1
- window.connect("destroy", self._destroy_cb)
window.show()
def _destroy_cb(self, widget):
"""Callback for when a window we manage is destroyed."""
- self._num_windows -= 1
- if self._num_windows <= 0:
- self.quit()
+ self.quit()
def main(self):
"""Start the GTK+ main loop."""
More information about the Pkg-bazaar-commits
mailing list