/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 viz/treeview.py

  • Committer: Daniel Schierbeck
  • Date: 2007-10-21 16:09:12 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071021160912-pim0pdnh30whp1bm
Moved branch locking into treeview.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
__copyright__ = "Copyright � 2005 Canonical Ltd."
7
7
__author__    = "Daniel Schierbeck <daniel.schierbeck@gmail.com>"
8
8
 
 
9
import sys
 
10
import string
9
11
import gtk
10
12
import gobject
11
13
import pango
39
41
        self.children = None
40
42
        self.parents  = None
41
43
 
 
44
        self.connect('destroy', lambda w: self.branch.unlock())
 
45
 
42
46
    def get_revision(self):
43
47
        return self.revision
44
48
 
54
58
 
55
59
    def set_branch(self, branch, start, maxnum):
56
60
        self.branch = branch
 
61
        self.branch.lock_read()
57
62
 
58
63
        gobject.idle_add(self.populate, start, maxnum)
59
64