/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: Jelmer Vernooij
  • Date: 2008-03-30 15:58:52 UTC
  • mto: (450.1.11 trunk)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: jelmer@samba.org-20080330155852-0btngt3srvde5pj9
Add utility function for finding icon paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import gobject
23
23
import subprocess
24
24
 
 
25
from bzrlib.plugins.gtk import icon_path
25
26
from bzrlib.osutils import format_date
26
27
from bzrlib.util.bencode import bdecode
27
28
 
91
92
 
92
93
    def show_no_signature(self):
93
94
        self.signature_key_id.set_text("")
94
 
        self.signature_image.set_from_file("icons/sign-unknown.png")
 
95
        self.signature_image.set_from_file(icon_path("sign-unknown.png"))
95
96
        self.signature_label.set_text("This revision has not been signed.")
96
97
 
97
98
    def show_signature(self, text):
101
102
            self.signature_key_id.set_text(signature.key_id)
102
103
 
103
104
        if signature.is_valid():
104
 
            self.signature_image.set_from_file("icons/sign-ok.png")
 
105
            self.signature_image.set_from_file(icon_path("sign-ok.png"))
105
106
            self.signature_label.set_text("This revision has been signed.")
106
107
        else:
107
 
            self.signature_image.set_from_file("icons/sign-bad.png")
 
108
            self.signature_image.set_from_file(icon_path("sign-bad.png"))
108
109
            self.signature_label.set_text("This revision has been signed, " + 
109
110
                    "but the authenticity of the signature cannot be verified.")
110
111