/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-11-21 19:08:07 UTC
  • mto: (450.1.11 trunk) (399.1.17 signatures)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: daniel.schierbeck@gmail.com-20071121190807-ixby5rvtt39xnqlz
Added icon to the signature page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
            self.file_info_box.hide()
128
128
 
129
129
        if self._branch is not None and self._branch.repository.has_signature_for_revision_id(revision.revision_id):
 
130
            self.signature_image.set_from_file("icons/sign-bad.png")
130
131
            self.signature_label.set_text("This revision has been signed, but the authenticity of the signature cannot be verified.")
131
132
        else:
 
133
            self.signature_image.set_from_file("icons/sign-unknown.png")
132
134
            self.signature_label.set_text("This revision has not been signed.")
133
135
 
134
136
    def _show_clicked_cb(self, widget, revid, parentid):
374
376
        return window
375
377
 
376
378
    def _create_signatures(self):
377
 
        signature_box = gtk.VBox(False, 6)
 
379
        signature_box = gtk.Table(rows=1, columns=2)
 
380
        signature_box.set_col_spacing(0, 12)
 
381
 
 
382
        self.signature_image = gtk.Image()
 
383
        signature_box.attach(self.signature_image, 0, 1, 0, 1, gtk.FILL)
378
384
 
379
385
        self.signature_label = gtk.Label()
380
 
 
381
 
        signature_box.pack_start(self.signature_label, False)
382
 
 
383
 
        signature_box.show_all()
384
 
        self.append_page(signature_box, tab_label=gtk.Label("Signatures"))
 
386
        signature_box.attach(self.signature_label, 1, 2, 0, 1, gtk.FILL)
 
387
 
 
388
        box = gtk.VBox(False, 6)
 
389
        box.set_border_width(6)
 
390
        box.pack_start(signature_box, expand=False)
 
391
        box.show_all()
 
392
        self.append_page(box, tab_label=gtk.Label("Signatures"))
385
393
 
386
394
    def _create_file_info_view(self):
387
395
        self.file_info_box = gtk.VBox(False, 6)