/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 17:56:26 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927175626-4462e9dc20d422b1
Bunch of random cleanups

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, comm):
 
35
    def __init__(self, gladefile, wt, wtpath):
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')
39
39
        
40
 
        # Communication object
41
 
        self.comm = comm
42
 
        
43
40
        self.window = self.glade.get_widget('window_add')
44
41
        
45
42
        # Dictionary for signal_autoconnect
49
46
        # Connect the signals to the handlers
50
47
        self.glade.signal_autoconnect(dic)
51
48
 
 
49
                self.wt = wt
 
50
                self.wtpath = wtpath
 
51
 
52
52
    def display(self):
53
53
        """ Display the Add file(s) dialog. """
54
54
        self.window.show_all()
57
57
        radio_selected = self.glade.get_widget('radiobutton_add_selected')
58
58
        radio_unknown = self.glade.get_widget('radiobutton_add_unknown')
59
59
        
60
 
        directory = self.comm.get_path()
61
 
        
62
 
        self.comm.set_busy(self.window)
63
60
        if radio_selected.get_active():
64
61
            # Add only the selected file
65
62
            filename = self.comm.get_selected_right()