[Pkg-bazaar-commits] ./bzr-gtk/unstable r266: Merge Gary's fix for #124143.
Szilveszter Farkas (Phanatic)
Szilveszter.Farkas at gmail.com
Fri Apr 10 07:49:23 UTC 2009
------------------------------------------------------------
revno: 266
committer: Szilveszter Farkas (Phanatic) <Szilveszter.Farkas at gmail.com>
branch nick: trunk
timestamp: Fri 2007-08-24 14:30:27 +0200
message:
Merge Gary's fix for #124143.
modified:
NEWS
viz/branchwin.py
------------------------------------------------------------
revno: 265.1.1
committer: Gary van der Merwe <garyvdm at gmail.com>
branch nick: gtk
timestamp: Fri 2007-08-24 13:48:03 +0200
message:
Show bzr viz interface quickly.
modified:
NEWS
viz/branchwin.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2007-08-24 09:54:27 +0000
+++ b/NEWS 2007-08-24 11:48:03 +0000
@@ -16,6 +16,8 @@
* Added "update" menu item in Olive. (Mateusz Korniak)
* New Olive application icon. (Simon Pascal Klein)
+
+ * Show bzr viz interface quickly. (Gary van der Merwe)
UI
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py 2007-07-21 18:40:41 +0000
+++ b/viz/branchwin.py 2007-08-24 11:48:03 +0000
@@ -172,11 +172,15 @@
gobject.TYPE_PYOBJECT,
str, str, str)
self.index = {}
+ self.set_title(branch.nick + " - bzrk")
+ gobject.idle_add(self.populate_model, start, maxnum)
+
+ def populate_model(self, start, maxnum):
index = 0
-
+
last_lines = []
(self.revisions, colours, self.children, self.parent_ids,
- merge_sorted) = distances(branch.repository, start)
+ merge_sorted) = distances(self.branch.repository, start)
for (index, (revision, node, lines)) in enumerate(graph(
self.revisions, colours, merge_sorted)):
# FIXME: at this point we should be able to show the graph order
@@ -193,10 +197,10 @@
last_lines = lines
if maxnum is not None and index > maxnum:
break
-
- self.set_title(branch.nick + " - bzrk")
self.treeview.set_model(self.model)
-
+ return False
+
+
def _treeview_cursor_cb(self, *args):
"""Callback for when the treeview cursor changes."""
(path, col) = self.treeview.get_cursor()
More information about the Pkg-bazaar-commits
mailing list