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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-03-15 12:43:48 UTC
  • mto: (126.1.38 bzr-gtk)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: szilveszter.farkas@gmail.com-20070315124348-0nx0zb7fv4pa8xk6
Fix the indentation error in the TortoiseBZR test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2005 Dan Loda <danloda@gmail.com>
2
 
# Copyright (C) 2007 Jelmer Vernooij <jelmer@samba.org>
3
2
 
4
3
# This program is free software; you can redistribute it and/or modify
5
4
# it under the terms of the GNU General Public License as published by
30
29
    start.
31
30
    """
32
31
 
33
 
    def __init__(self, revision=None, scroll=True):
34
 
        super(LogView, self).__init__()
35
 
        if scroll:
36
 
            self.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
37
 
        else:
38
 
            self.set_policy(gtk.POLICY_NEVER, gtk.POLICY_NEVER)
 
32
    def __init__(self, revision=None):
 
33
        gtk.ScrolledWindow.__init__(self)
 
34
        self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
39
35
        self.set_shadow_type(gtk.SHADOW_NONE)
40
36
        self._create()
41
37
        self._show_callback = None
54
50
    def set_revision(self, revision):
55
51
        self._revision = revision
56
52
        self.revision_id.set_text(revision.revision_id)
57
 
        if revision.committer is not None:
58
 
            self.committer.set_text(revision.committer)
59
 
        else:
60
 
            self.committer.set_text("")
61
 
        if revision.timestamp is not None:
62
 
            self.timestamp.set_text(format_date(revision.timestamp,
63
 
                                                revision.timezone))
 
53
        self.committer.set_text(revision.committer)
 
54
        self.timestamp.set_text(format_date(revision.timestamp,
 
55
                                            revision.timezone))
64
56
        self.message_buffer.set_text(revision.message)
65
57
        try:
66
58
            self.branchnick_label.set_text(revision.properties['branch-nick'])