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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-26 05:26:06 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060926052606-00839a63538c7b02
Don't use communicator for status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
class OliveStatus:
45
45
    """ Display Status window and perform the needed actions. """
46
 
    def __init__(self, gladefile, comm, dialog):
 
46
    def __init__(self, gladefile, wt, wtpath, dialog):
47
47
        """ Initialize the Status window. """
48
48
        self.gladefile = gladefile
49
49
        self.glade = gtk.glade.XML(self.gladefile, 'window_status')
50
50
        
51
 
        # Communication object
52
 
        self.comm = comm
53
51
        # Dialog object
54
52
        self.dialog = dialog
55
53
        
56
54
        # Get the Status window widget
57
55
        self.window = self.glade.get_widget('window_status')
 
56
        self.wt = wt
 
57
        self.wtpath = wtpath
58
58
        
59
59
        # Check if current location is a branch
60
60
        try:
61
 
            (self.wt, path) = WorkingTree.open_containing(self.comm.get_path())
62
 
            branch = self.wt.branch
 
61
            branch = wt.branch
63
62
        except errors.NotBranchError:
64
63
            self.notbranch = True
65
64
            return
66
65
        except:
67
66
            raise
68
67
        
69
 
        file_id = self.wt.path2id(path)
 
68
        file_id = self.wt.path2id(wtpath)
70
69
 
71
70
        self.notbranch = False
72
71
        if file_id is None:
98
97
        column.add_attribute(cell, "text", 0)
99
98
        self.treeview.append_column(column)
100
99
        
101
 
        if bzrlib.version_info < (0, 9):
102
 
            delta = compare_trees(self.old_tree, self.wt)
103
 
        else:
104
 
            delta = self.wt.changes_from(self.old_tree)
 
100
        delta = self.wt.changes_from(self.old_tree)
105
101
 
106
102
        changes = False
107
103