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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 20:30:59 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927203059-85792ae0a81db524
Bunch of small fixes, cleanups and simplifications.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
class OliveCheckout:
33
33
    """ Display checkout dialog and perform the needed operations. """
34
 
    def __init__(self, comm):
 
34
    def __init__(self, path=None):
35
35
        """ Initialize the Checkout dialog. """
36
36
        self.glade = gtk.glade.XML('window_checkout', 'olive-gtk')
37
37
        
38
 
        # Communication object
39
 
        self.comm = comm
40
 
        
41
38
        self.window = self.glade.get_widget('window_checkout')
42
39
        
43
40
        # Dictionary for signal_autoconnect
49
46
        
50
47
        # Save FileChooser state
51
48
        self.filechooser = self.glade.get_widget('filechooserbutton_checkout')
52
 
        self.filechooser.set_filename(self.comm.get_path())
 
49
        if path is not None:
 
50
            self.filechooser.set_filename(path)
53
51
 
54
52
    def display(self):
55
53
        """ Display the Checkout dialog. """
125
123
                                     _("The parent directory (%s)\ndoesn't exist.") % errmsg)
126
124
            self.comm.set_busy(self.window, False)
127
125
            return
128
 
        except:
129
 
            raise
130
126
        
131
127
        self.close()
132
128
        self.comm.refresh_right()