/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 viz/branchwin.py

  • Committer: Daniel Schierbeck
  • Date: 2007-12-02 16:28:38 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: daniel.schierbeck@gmail.com-20071202162838-vrze8e1f47mykg7y
Moved retrieval of tags into the revisionview itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
    def construct_bottom(self):
292
292
        """Construct the bottom half of the window."""
293
293
        from bzrlib.plugins.gtk.revisionview import RevisionView
294
 
        self.revisionview = RevisionView(None, tags=[], show_children=True, branch=self.branch)
 
294
        self.revisionview = RevisionView(branch=self.branch)
295
295
        (width, height) = self.get_size()
296
296
        self.revisionview.set_size_request(width, int(height / 2.5))
297
297
        self.revisionview.show()
349
349
 
350
350
            self.next_button.set_menu(next_menu)
351
351
 
352
 
            tags = []
353
 
            if self.branch.supports_tags():
354
 
                tagdict = self.branch.tags.get_reverse_tag_dict()
355
 
                if tagdict.has_key(revision.revision_id):
356
 
                    tags = tagdict[revision.revision_id]
357
 
            self.revisionview.set_revision(revision, tags, children)
 
352
            self.revisionview.set_revision(revision, children)
358
353
 
359
354
    def _back_clicked_cb(self, *args):
360
355
        """Callback for when the back button is clicked."""