/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-11-22 00:56:23 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071122005623-2egvsuupfjez8faj
Made the refresh use proper locking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
    def refresh(self):
172
172
        gobject.idle_add(self.populate, self.get_revision())
173
173
 
 
174
    def update(self):
 
175
        try:
 
176
            self.branch.unlock()
 
177
            try:
 
178
                self.branch.lock_write()
 
179
                self.branch.update()
 
180
            finally:
 
181
                self.branch.unlock()
 
182
        finally:
 
183
            self.branch.lock_read()
 
184
 
174
185
    def back(self):
175
186
        """Signal handler for the Back button."""
176
187
        parents = self.get_parents()