/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 14:08:06 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-20060813140806-3364d3e02a086d51
Modified OliveDialog class interface; huge cleanups.

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

    * olive/frontend/gtk/branch.py: display number of revisions branched
    * olive/frontend/gtk/*: use new dialog interface with detailed descriptions
    * olive/frontend/gtk/dialog.py: modified according to GNOME HIG (primary
      and secondary text)

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