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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 17:49:18 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927174918-0e5c331b574d16a3
Don't pass along dialog context everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
class OliveInfo:
146
146
    """ Display Informations window and perform the needed actions. """
147
 
    def __init__(self, gladefile, comm, dialog):
 
147
    def __init__(self, gladefile, comm):
148
148
        """ Initialize the Informations window. """
149
149
        self.gladefile = gladefile
150
150
        self.glade = gtk.glade.XML(self.gladefile, 'window_info', 'olive-gtk')
151
151
        
152
152
        # Communication object
153
153
        self.comm = comm
154
 
        # Dialog object
155
 
        self.dialog = dialog
156
154
        
157
155
        # Get the Informations window widget
158
156
        self.window = self.glade.get_widget('window_info')
559
557
    def display(self):
560
558
        """ Display the Informations window. """
561
559
        if self.notbranch:
562
 
            self.dialog.error_dialog(_('Directory is not a branch'),
 
560
            error_dialog(_('Directory is not a branch'),
563
561
                                     _('You can perform this action only in a branch.'))
564
562
            self.close()
565
563
        else: