/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-02 16:36:10 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: daniel.schierbeck@gmail.com-20071202163610-tetqqgb2gdgxj3ih
Made tag list smarter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
                                          self.children_widgets,
141
141
                                          self.children_table)
142
142
        
143
 
        if self._tagdict.has_key(revision.revision_id):
144
 
            tags = self._tagdict[revision.revision_id]
145
 
        else:
146
 
            tags = []
147
 
            
148
 
        self._add_tags(tags)
149
143
 
150
144
        file_info = revision.properties.get('file-info', None)
151
145
        if file_info is not None:
179
173
        """Callback for when the go button for a parent is clicked."""
180
174
        self._go_callback(revid)
181
175
 
182
 
    def _add_tags(self, tags):
 
176
    def _add_tags(self, *args):
 
177
        if self._tagdict.has_key(self._revision.revision_id):
 
178
            tags = self._tagdict[self._revision.revision_id]
 
179
        else:
 
180
            tags = []
 
181
            
183
182
        if tags == []:
184
183
            self.tags_list.hide()
185
184
            self.tags_label.hide()
358
357
        self.tags_list.show()
359
358
        self.tags_widgets = []
360
359
 
 
360
        self.connect('notify::revision', self._add_tags)
 
361
 
361
362
        return self.table
362
363
 
363
364