/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/branchwin.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:
36
36
        self._parent = parent
37
37
 
38
38
        self.connect('key-press-event', self._on_key_pressed)
 
39
        self.connect("destroy", lambda w: self.branch.unlock())
39
40
 
40
41
        # Use three-quarters of the screen by default
41
42
        screen = self.get_screen()
202
203
        gobject.idle_add(self.populate_model, start, maxnum)
203
204
 
204
205
    def populate_model(self, start, maxnum):
 
206
        self.branch.lock_read()
205
207
        (linegraphdata, index, columns_len) = linegraph(self.branch,
206
208
                                                        start,
207
209
                                                        maxnum)