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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-19 23:56:40 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-20060819235640-abdb3ecf8553b547
Fixed a bug when double-clicking a file.

2006-08-19  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/handler.py: fixed a long existing bug: double-clicking a
      file should open it with an application (supported under Windows)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    def __init__(self, gladefile, comm, dialog):
37
37
        """ Initialize the Move dialog. """
38
38
        self.gladefile = gladefile
39
 
        self.glade = gtk.glade.XML(self.gladefile, 'window_move', 'olive-gtk')
 
39
        self.glade = gtk.glade.XML(self.gladefile, 'window_move')
40
40
        
41
41
        # Communication object
42
42
        self.comm = comm
66
66
        filename = self.comm.get_selected_right()
67
67
            
68
68
        if filename is None:
69
 
            self.dialog.error_dialog(_('No file was selected'),
70
 
                                     _('Please select a file from the list to proceed.'))
 
69
            self.dialog.error_dialog('No file was selected',
 
70
                                     'Please select a file from the list to proceed.')
71
71
            return
72
72
        
73
73
        source = self.comm.get_path() + '/' + filename
76
76
        try:
77
77
            fileops.move([source, destination])
78
78
        except errors.NotBranchError:
79
 
            self.dialog.error_dialog(_('File is not in a branch'),
80
 
                                     _('The selected file is not in a branch.'))
 
79
            self.dialog.error_dialog('File is not in a branch',
 
80
                                     'The selected file is not in a branch.')
81
81
            return
82
82
        except errors.NotSameBranchError:
83
 
            self.dialog.error_dialog(_('Not the same branch'),
84
 
                                     _('The destination is not in the same branch.'))
 
83
            self.dialog.error_dialog('Not the same branch',
 
84
                                     'The destination is not in the same branch.')
85
85
            return
86
86
        except:
87
87
            raise