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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 20:30:59 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927203059-85792ae0a81db524
Bunch of small fixes, cleanups and simplifications.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
class OliveInfo:
146
146
    """ Display Informations window and perform the needed actions. """
147
 
    def __init__(self, wt):
 
147
    def __init__(self, comm):
148
148
        """ Initialize the Informations window. """
149
149
        self.glade = gtk.glade.XML(gladefile, 'window_info', 'olive-gtk')
150
150
        
 
151
        # Communication object
 
152
        self.comm = comm
 
153
        
151
154
        # Get the Informations window widget
152
155
        self.window = self.glade.get_widget('window_info')
153
156
        
154
157
        # Check if current location is a branch
155
158
        self.notbranch = False
156
159
        try:
157
 
            self.ret = info(wt.basedir)
 
160
            self.ret = info(self.comm.get_path())
158
161
        except errors.NotBranchError:
159
162
            self.notbranch = True
160
163
            return