/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: Szilveszter Farkas (Phanatic)
  • Date: 2006-10-20 11:59:27 UTC
  • Revision ID: Szilveszter.Farkas@gmail.com-20061020115927-f21c929c3abcb63c
Show current path in the statusbar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        self.window = self.toplevel.get_widget('window_main')
66
66
        
67
67
        self.pref = OlivePreferences()
 
68
        
 
69
        self.path = None
68
70
 
69
71
        # Initialize the statusbar
70
72
        self.statusbar = self.toplevel.get_widget('statusbar')
186
188
    def set_path(self, path):
187
189
        self.path = path
188
190
        self.notbranch = False
 
191
        
189
192
        try:
190
193
            self.wt, self.wtpath = WorkingTree.open_containing(self.path)
191
194
        except errors.NotBranchError:
192
195
            self.notbranch = True
 
196
        
 
197
        self.statusbar.push(self.context_id, path)
193
198
 
194
199
    def get_path(self):
195
200
        return self.path
382
387
    def on_menuitem_view_show_hidden_files_activate(self, widget):
383
388
        """ View/Show hidden files menu handler. """
384
389
        self.pref.set_preference('dotted_files', widget.get_active())
385
 
        self.refresh_right()
 
390
        if self.path is not None:
 
391
            self.refresh_right()
386
392
 
387
393
    def on_treeview_left_button_press_event(self, widget, event):
388
394
        """ Occurs when somebody right-clicks in the bookmark list. """