/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 about.py

  • Committer: Jelmer Vernooij
  • Date: 2007-07-23 12:03:29 UTC
  • Revision ID: jelmer@samba.org-20070723120329-jh92obhhs519edga
Use application path to find icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
except:
21
21
    pass
22
22
 
 
23
import bzrlib
23
24
import gtk
24
 
import bzrlib
 
25
import os
 
26
from bzrlib.plugins.gtk import data_path
25
27
 
26
28
class AboutDialog(gtk.AboutDialog):
27
29
    def __init__(self):
30
32
        self.set_version(bzrlib.version_string)
31
33
        self.set_website("http://bazaar-vcs.org/")
32
34
        self.set_license("GNU GPLv2")
33
 
        self.set_icon(gtk.gdk.pixbuf_new_from_file("bzr-icon-64.png"))
 
35
        self.set_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(data_path(), "bzr-icon-64.png")))
34
36
        self.connect ("response", lambda d, r: d.destroy())
35
37