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

  • Committer: Jasper Groenewegen
  • Date: 2008-07-20 22:36:42 UTC
  • mto: This revision was merged to the branch mainline in revision 566.
  • Revision ID: colbrac@xs4all.nl-20080720223642-bk05nf98lcafdrda
Fixes to launch in menu.py
Absolute import in bookmark.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
            # TODO: how to enter a directory?
262
262
            return
263
263
        else:
264
 
            fullpath = self.path + os.sep + filename
 
264
            fullpath = os.path.join(self.path, filename)
265
265
            if os.path.isdir(fullpath):
266
266
                # selected item is an existant directory
267
267
                # TODO: how to enter a directory?
268
 
                return
 
268
                # Jasper, 21-7-08: Let's just open the folder in a file browser
 
269
                # instead of ignoring the explicit open (when double
 
270
                # clicking suffices for browsing)
 
271
                launch.launch(fullpath)
269
272
            else:
270
 
                launch(fullpath) 
 
273
                launch.launch(fullpath) 
271
274
 
272
275
    def revert(self, action):
273
276
        """ Right context menu -> Revert """
357
360
        path = self.selected
358
361
 
359
362
        if path != None:
360
 
            launch(path)
 
363
            launch.launch(path)
361
364
    
362
365
    def diff_selected(self, action):
363
366
        """ Diff toolbutton -> Selected... """