/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/status.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:
32
32
import bzrlib
33
33
import bzrlib.errors as errors
34
34
 
35
 
if bzrlib.version_info < (0, 9):
36
 
    # function deprecated after 0.9
37
 
    from bzrlib.delta import compare_trees
38
 
 
39
35
from bzrlib.status import show_tree_status
40
36
from bzrlib.workingtree import WorkingTree
41
37
 
43
39
 
44
40
class OliveStatus:
45
41
    """ Display Status window and perform the needed actions. """
46
 
    def __init__(self, gladefile, wt, wtpath, dialog):
 
42
    def __init__(self, gladefile, wt, wtpath):
47
43
        """ Initialize the Status window. """
48
44
        self.gladefile = gladefile
49
45
        self.glade = gtk.glade.XML(self.gladefile, 'window_status')
50
46
        
51
 
        # Dialog object
52
 
        self.dialog = dialog
53
 
        
54
47
        # Get the Status window widget
55
48
        self.window = self.glade.get_widget('window_status')
56
49
        self.wt = wt
142
135
    def display(self):
143
136
        """ Display the Diff window. """
144
137
        if self.notbranch:
145
 
            self.dialog.error_dialog(_('Directory is not a branch'),
 
138
            error_dialog(_('Directory is not a branch'),
146
139
                                     _('You can perform this action only in a branch.'))
147
140
            self.close()
148
141
        else: