/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: Alexander Belchenko
  • Date: 2006-10-10 07:28:45 UTC
  • mto: (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 103.
  • Revision ID: bialix@ukr.net-20061010072845-2ae8552f1e412d64
Make change of drive letter on win32 is actually workable

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
    def on_treeview_right_row_activated(self, treeview, path, view_column):
428
428
        """ Occurs when somebody double-clicks or enters an item in the
429
429
        file list. """
430
 
        import os.path
431
 
        
432
430
        from launch import launch
433
431
        
434
432
        newdir = self.get_selected_right()
436
434
        if newdir == '..':
437
435
            self.set_path(os.path.split(self.get_path())[0])
438
436
        else:
439
 
            fullpath = self.get_path() + os.sep + newdir
 
437
            fullpath = os.path.join(self.get_path(), newdir)
440
438
            if os.path.isdir(fullpath):
441
439
                # selected item is an existant directory
442
440
                self.set_path(fullpath)
778
776
        active = combobox.get_active()
779
777
        if active >= 0:
780
778
            drive = model[active][0]
 
779
            self.set_path(drive + '\\')
781
780
            self.refresh_right(drive + '\\')
782
781
 
783
782
import ConfigParser