/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:41:17 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: daniel.schierbeck@gmail.com-20071202164117-x1yo4uszsctzd5xo
Made the revision id label use signals when updating.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        if revision is None: return
109
109
 
110
110
        self._revision = revision
111
 
        self.revision_id.set_text(revision.revision_id)
112
111
        if revision.committer is not None:
113
112
            self.committer.set_text(revision.committer)
114
113
        else:
269
268
        label.show()
270
269
 
271
270
        align = gtk.Alignment(0.0, 0.5)
272
 
        self.revision_id = gtk.Label()
273
 
        self.revision_id.set_selectable(True)
274
 
        align.add(self.revision_id)
 
271
        revision_id = gtk.Label()
 
272
        revision_id.set_selectable(True)
 
273
        self.connect('notify::revision', 
 
274
                lambda w, p: revision_id.set_text(self._revision.revision_id))
 
275
        align.add(revision_id)
275
276
        self.table.attach(align, 1, 2, 0, 1, gtk.EXPAND | gtk.FILL, gtk.FILL)
276
277
        align.show()
277
 
        self.revision_id.show()
 
278
        revision_id.show()
278
279
 
279
280
        align = gtk.Alignment(1.0, 0.5)
280
281
        self.author_label = gtk.Label()