/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: Markus Korn
  • Date: 2009-03-05 16:50:39 UTC
  • mto: (635.2.4 trunk)
  • mto: This revision was merged to the branch mainline in revision 639.
  • Revision ID: thekorn@gmx.de-20090305165039-h6xh48wr9lwe1661
* register BranchSelectionBox() as a gobject type to fix (LP: #294396)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from bzrlib import trace
26
26
from bzrlib.osutils import format_date
27
 
try:
28
 
    from bzrlib.bencode import bdecode
29
 
except ImportError:
30
 
    from bzrlib.util.bencode import bdecode
 
27
from bzrlib.util.bencode import bdecode
31
28
from bzrlib.testament import Testament
32
29
 
33
30
from bzrlib.plugins.gtk import icon_path
419
416
            self.timestamp.set_text(format_date(revision.timestamp,
420
417
                                                revision.timezone))
421
418
        try:
422
 
            self.branchnick.show()
423
 
            self.branchnick_label.show()
424
 
            self.branchnick.set_text(revision.properties['branch-nick'])
 
419
            self.branchnick_label.set_text(revision.properties['branch-nick'])
425
420
        except KeyError:
426
 
            self.branchnick.hide()
427
 
            self.branchnick_label.hide()
 
421
            self.branchnick_label.set_text("")
428
422
 
429
423
        self._add_parents_or_children(revision.parent_ids,
430
424
                                      self.parents_widgets,
629
623
        self.committer.show()
630
624
 
631
625
        row += 1
 
626
        label = gtk.Label()
 
627
        label.set_alignment(1.0, 0.5)
 
628
        label.set_markup("<b>Branch nick:</b>")
 
629
        self.table.attach(label, 0, 1, row, row+1, gtk.FILL, gtk.FILL)
 
630
        label.show()
 
631
 
632
632
        self.branchnick_label = gtk.Label()
633
 
        self.branchnick_label.set_alignment(1.0, 0.5)
634
 
        self.branchnick_label.set_markup("<b>Branch nick:</b>")
635
 
        self.table.attach(self.branchnick_label, 0, 1, row, row+1, gtk.FILL, gtk.FILL)
 
633
        self.branchnick_label.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
 
634
        self.branchnick_label.set_alignment(0.0, 0.5)
 
635
        self.branchnick_label.set_selectable(True)
 
636
        self.table.attach(self.branchnick_label, 1, 2, row, row+1, gtk.EXPAND | gtk.FILL, gtk.FILL)
636
637
        self.branchnick_label.show()
637
638
 
638
 
        self.branchnick = gtk.Label()
639
 
        self.branchnick.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
640
 
        self.branchnick.set_alignment(0.0, 0.5)
641
 
        self.branchnick.set_selectable(True)
642
 
        self.table.attach(self.branchnick, 1, 2, row, row+1, gtk.EXPAND | gtk.FILL, gtk.FILL)
643
 
        self.branchnick.show()
644
 
 
645
639
        row += 1
646
640
        label = gtk.Label()
647
641
        label.set_alignment(1.0, 0.5)