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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-13 11:02:48 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-20060813110248-4f256d8db6247b61
Some bugs fixed in the Push dialog; added TODO items.

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

    * TODO: some more items added
    * olive.glade: Push window should not be visible by default
    * olive/frontend/gtk/push.py: fixed a bug if no push location known; user
      gets an error if directory is not a branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from bzrlib.branch import Branch
33
33
import bzrlib.errors as errors
34
34
 
 
35
from dialog import OliveDialog
35
36
from viz.bzrkapp import BzrkApp
36
37
 
37
38
class OliveLog:
38
39
    """ Display Log (bzrk) window and perform the needed actions. """
39
 
    def __init__(self, gladefile, comm, dialog):
 
40
    def __init__(self, gladefile, comm):
40
41
        """ Initialize the Log (bzrk) window. """
41
42
        self.gladefile = gladefile
42
 
 
43
 
        # Communication object
44
43
        self.comm = comm
45
 
        # Dialog object
46
 
        self.dialog = dialog
 
44
        
 
45
        self.dialog = OliveDialog(self.gladefile)
47
46
        
48
47
        # Check if current location is a branch
49
48
        self.notbranch = False
60
59
    def display(self):
61
60
        """ Display the Log (bzrk) window. """
62
61
        if self.notbranch:
63
 
            self.dialog.error_dialog(_('Directory is not a branch'),
64
 
                                     _('You can perform this action only in a branch.'))
 
62
            self.dialog.error_dialog('Directory is not a branch.')
65
63
        else:
66
64
            self.app = BzrkApp()
67
65
            self.app.show(self.branch, self.revid, None)