/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/frontend/gtk/status.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-09 12:02:10 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060809120210-819eec06966d9b0f
Fixed a small bug in the Status window.

2006-08-09  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/status.py: fixed a NotBranchError related bug
    * olive.glade: diff and status window not visible by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    sys.exit(1)
31
31
 
32
32
import bzrlib
 
33
import bzrlib.errors as errors
33
34
 
34
35
if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
35
36
    # function deprecated after 0.9
51
52
        
52
53
        self.dialog = OliveDialog(self.gladefile)
53
54
        
 
55
        # Get the Status window widget
 
56
        self.window = self.glade.get_widget('window_status')
 
57
        
54
58
        # Check if current location is a branch
55
59
        try:
56
60
            (self.wt, path) = WorkingTree.open_containing(self.comm.get_path())
71
75
        # Set the old working tree
72
76
        self.old_tree = self.wt.branch.repository.revision_tree(self.wt.branch.last_revision())
73
77
        
74
 
        # Get the Diff window widget
75
 
        self.window = self.glade.get_widget('window_status')
76
 
        
77
78
        # Dictionary for signal_autoconnect
78
79
        dic = { "on_button_status_close_clicked": self.close }
79
80
        
135
136
        """ Display the Diff window. """
136
137
        if self.notbranch:
137
138
            self.dialog.error_dialog('Directory is not a branch.')
 
139
            self.close()
138
140
        else:
139
141
            self.window.show_all()
140
142