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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 21:05:19 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927210519-7bc2662211808af5
Bunch of other small updates, add more items to 
the TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        
137
137
    def _load_left(self):
138
138
        """ Load data into the left panel. (Bookmarks) """
139
 
        # set cursor to busy
140
 
        self.comm.set_busy(self.treeview_left)
141
 
        
142
139
        # Create TreeStore
143
140
        treestore = gtk.TreeStore(str, str)
144
141
        
164
161
        # Expand the tree
165
162
        self.treeview_left.expand_all()
166
163
 
167
 
        self.comm.set_busy(self.treeview_left, False)
168
 
        
169
164
    def _load_right(self):
170
165
        """ Load data into the right panel. (Filelist) """
171
166
        from bzrlib.workingtree import WorkingTree
172
167
        
173
 
        # set cursor to busy
174
 
        self.comm.set_busy(self.treeview_right)
175
 
        
176
168
        # Create ListStore
177
169
        liststore = gtk.ListStore(str, str, str)
178
170
        
315
307
            self.comm.toolbutton_pull.set_sensitive(False)
316
308
            self.comm.toolbutton_push.set_sensitive(False)
317
309
        
318
 
        # set cursor to default
319
 
        self.comm.set_busy(self.treeview_right, False)
320
 
 
321
310
class OliveCommunicator:
322
311
    """ This class is responsible for the communication between the different
323
312
    modules. """
410
399
    
411
400
    def refresh_left(self):
412
401
        """ Refresh the bookmark list. """
413
 
        # set cursor to busy
414
 
        self.set_busy(self.treeview_left)
415
402
        
416
403
        # Get TreeStore and clear it
417
404
        treestore = self.treeview_left.get_model()
432
419
        # Expand the tree
433
420
        self.treeview_left.expand_all()
434
421
 
435
 
        self.set_busy(self.treeview_left, False)
436
 
 
437
422
    def refresh_right(self, path=None):
438
423
        """ Refresh the file list. """
439
424
        from bzrlib.workingtree import WorkingTree
440
425
 
441
 
        self.set_busy(self.treeview_right)
442
 
 
443
426
        if path is None:
444
427
            path = self.get_path()
445
428
 
446
429
        # A workaround for double-clicking Bookmarks
447
430
        if not os.path.exists(path):
448
 
            self.set_busy(self.treeview_right, False)
449
431
            return
450
432
 
451
433
        # Get ListStore and clear it
576
558
            self.toolbutton_pull.set_sensitive(False)
577
559
            self.toolbutton_push.set_sensitive(False)
578
560
 
579
 
        self.set_busy(self.treeview_right, False)
580
 
 
581
561
    def set_busy(self, widget, busy=True):
582
562
        if busy:
583
563
            widget.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))