/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/frontend/gtk/handler.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-07-20 14:31:08 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060720143108-12c16a5c52431578
2006-07-20  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/__init__.py: implemented OliveCommunication.refresh_right()
    * olive/frontend/gtk/handler.py: implemented browsing in the file list
    * olive/backend/fileops.py: tweaked status() (to get proper status in fact)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        self.dialog.about()
43
43
        
44
44
    def on_menuitem_branch_branch_activate(self, widget):
 
45
        """ Branch/Branch... menu handler. """
45
46
        branch = OliveBranch(self.gladefile, self.comm)
46
47
        branch.display()
 
48
        
 
49
    def on_treeview_right_row_activated(self, treeview, path, view_column):
 
50
        """ Occurs when somebody double-clicks or enters an item in the
 
51
        file list. """
 
52
        import os.path
 
53
        
 
54
        treeselection = treeview.get_selection()
 
55
        (model, iter) = treeselection.get_selected()
 
56
        newdir = model.get_value(iter, 1)
 
57
        
 
58
        if newdir == '..':
 
59
            self.comm.set_path(os.path.split(self.comm.get_path())[0])
 
60
        else:
 
61
            self.comm.set_path(self.comm.get_path() + '/' + newdir)
 
62
        
 
63
        self.comm.refresh_right()
47
64
    
48
65
    def not_implemented(self, widget):
49
66
        """ Display a Not implemented error message. """