/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: Aaron Bentley
  • Date: 2006-09-18 13:49:47 UTC
  • mfrom: (81 bzr-gtk)
  • mto: (66.6.5 gtk)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: abentley@panoramicfeedback.com-20060918134947-0c9ad79a67b1765f
MergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
1
# -*- coding: UTF-8 -*-
3
2
"""Branch window.
4
3
 
358
357
            button.show()
359
358
 
360
359
            button = gtk.Button(parent_id)
 
360
            button.set_use_underline(False)
361
361
            button.connect("clicked", self._go_clicked_cb, parent_id)
362
362
            hbox.pack_start(button, expand=False, fill=True)
363
363
            button.show()
411
411
        # TODO: more than one parent
412
412
        """Callback for when a treeview row gets activated."""
413
413
        revision = self.model[path][0]
 
414
        if len(self.parent_ids[revision]) == 0:
 
415
            # Ignore revisions without parent
 
416
            return
414
417
        parent_id = self.parent_ids[revision][0]
415
418
        if self.app is not None:
416
419
            self.app.show_diff(self.branch, revision.revision_id, parent_id)