/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: David Planella
  • Date: 2011-03-06 08:24:07 UTC
  • mfrom: (718 trunk)
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: david.planella@ubuntu.com-20110306082407-y9zwkjje5oue9egw
Added preliminary internationalization support. Merged from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from gi.repository import Gtk
18
 
from gi.repository import GdkPixbuf
 
17
try:
 
18
    import pygtk
 
19
    pygtk.require("2.0")
 
20
except:
 
21
    pass
 
22
 
 
23
import bzrlib
 
24
import gtk
19
25
import os
20
26
 
21
 
import bzrlib
22
 
 
23
 
from bzrlib.plugins.gtk import (
24
 
    data_path,
25
 
    icon_path,
26
 
    )
 
27
from bzrlib.plugins.gtk import data_path, icon_path
27
28
 
28
29
 
29
30
def read_license():
44
45
    return credits
45
46
 
46
47
 
47
 
class AboutDialog(Gtk.AboutDialog):
 
48
class AboutDialog(gtk.AboutDialog):
48
49
    def __init__(self):
49
50
        super(AboutDialog, self).__init__()
50
51
        self.set_name("Bazaar GTK")
51
52
        self.set_version(bzrlib.plugins.gtk.version_string)
52
53
        self.set_website("http://bazaar-vcs.org/BzrGtk")
53
54
        self.set_license(read_license())
54
 
        self.set_logo(GdkPixbuf.Pixbuf.new_from_file(icon_path("bzr-icon-64.png")))
 
55
        self.set_logo(gtk.gdk.pixbuf_new_from_file(icon_path("bzr-icon-64.png")))
55
56
        credits = load_credits()
56
57
        if credits is not None:
57
58
            (authors, documenters, artists, translators) = credits