/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 __init__.py

  • Committer: Gary van der Merwe
  • Date: 2007-10-17 11:56:50 UTC
  • Revision ID: garyvdm@gmail.com-20071017115650-0vml2vemosja5rk0
Fix for bug #70463: viz slow when run from olive.
Allways create a read lock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
    :return: The viz window object.
226
226
    """
227
227
    from viz.branchwin import BranchWindow
228
 
    branch.lock_read()
229
228
    pp = BranchWindow()
230
229
    pp.set_branch(branch, revision, limit)
231
230
    # cleanup locks when the window is closed
232
 
    pp.connect("destroy", lambda w: branch.unlock())
233
231
    return pp
234
232
 
235
233