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

  • Committer: Daniel Schierbeck
  • Date: 2007-12-06 17:18:16 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: daniel.schierbeck@gmail.com-20071206171816-kip4h92hd5zavp2w
Added file-id property to the revisionview.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
            'Revision',
45
45
            'The revision being displayed',
46
46
            gobject.PARAM_READWRITE
 
47
        ),
 
48
 
 
49
        'file-id': (
 
50
            gobject.TYPE_PYOBJECT,
 
51
            'File Id',
 
52
            'The file id',
 
53
            gobject.PARAM_READWRITE
47
54
        )
48
55
    }
49
56
 
76
83
            return self._branch
77
84
        elif property.name == 'revision':
78
85
            return self._revision
 
86
        elif property.name == 'file-id':
 
87
            return self._file_id
79
88
        else:
80
89
            raise AttributeError, 'unknown property %s' % property.name
81
90
 
84
93
            self._branch = value
85
94
        elif property.name == 'revision':
86
95
            self._set_revision(value)
 
96
        elif property.name == 'file-id':
 
97
            self._file_id = value
87
98
        else:
88
99
            raise AttributeError, 'unknown property %s' % property.name
89
100
 
99
110
        This just effects the display of a per-file commit message.
100
111
        If it is set to None, then all commit messages will be shown.
101
112
        """
102
 
        self._file_id = file_id
 
113
        self.set_property('file-id', file_id)
103
114
 
104
115
    def set_revision(self, revision, children=[]):
105
116
        self.set_property('revision', revision)