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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 18:00:19 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927180019-81e1a74e0e6f311d
Fix add

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
class OliveAdd:
34
34
    """ Display the Add file(s) dialog and perform the needed actions. """
35
 
    def __init__(self, gladefile, wt, wtpath):
 
35
    def __init__(self, gladefile, wt, wtpath, selected=[]):
36
36
        """ Initialize the Add file(s) dialog. """
37
37
        self.gladefile = gladefile
38
38
        self.glade = gtk.glade.XML(self.gladefile, 'window_add', 'olive-gtk')
46
46
        # Connect the signals to the handlers
47
47
        self.glade.signal_autoconnect(dic)
48
48
 
49
 
                self.wt = wt
50
 
                self.wtpath = wtpath
 
49
        self.wt = wt
 
50
        self.wtpath = wtpath
 
51
        self.selected = selected
51
52
 
52
53
    def display(self):
53
54
        """ Display the Add file(s) dialog. """
59
60
        
60
61
        if radio_selected.get_active():
61
62
            # Add only the selected file
62
 
            filename = self.comm.get_selected_right()
 
63
            filename = self.selected
63
64
            
64
65
            if filename is None:
65
66
                error_dialog(_('No file was selected'),