diff options
author | bfox <bfox> | 2000-11-16 21:57:27 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-11-16 21:57:27 +0000 |
commit | 3caa48526d6b345e571c79ff546ea15ec7aac4b6 (patch) | |
tree | 92eb01cf1bf54ac063d27e07e0fefdccc096cabd /gui.py | |
parent | 658a79f79e89b051e14aef8e357bac5fb054cf66 (diff) | |
download | anaconda-3caa48526d6b345e571c79ff546ea15ec7aac4b6.tar.gz anaconda-3caa48526d6b345e571c79ff546ea15ec7aac4b6.tar.xz anaconda-3caa48526d6b345e571c79ff546ea15ec7aac4b6.zip |
Changed code to load anaconda_header.png instead of .xpm. Also fixed a bug in the last try statement in the header pixmap creation loop.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 42 |
1 files changed, 25 insertions, 17 deletions
@@ -668,28 +668,36 @@ class InstallControlWindow: #Create header at the top of the installer try: - pix, msk = create_pixmap_from_xpm(self.window, None, "/usr/share/anaconda/pixmaps/anaconda_header.xpm") - pixmap = GtkPixmap(pix, msk) - pixmap.show() - vbox.pack_start(pixmap, FALSE, TRUE, 0) -# im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/first.png") + im = GdkImlib.Image ("/usr/share/anaconda/pixmaps/anaconda_header.png") + if im: + im.render () + pix = im.make_pixmap () + a = GtkAlignment () + a.add (pix) + a.set (0.5, 0.5, 1.0, 1.0) + vbox.pack_start (a, FALSE, TRUE, 0) except: try: - pix, msk = create_pixmap_from_xpm(self.window, None, "pixmaps/anaconda_header.xpm") - pixmap = GtkPixmap(pix, msk) - pixmap.show() - vbox.pack_start(pixmap, FALSE, TRUE, 0) -# im = GdkImlib.Image ("pixmaps/first.png") - + im = GdkImlib.Image ("pixmaps/anaconda_header.png") + if im: + im.render () + pix = im.make_pixmap () + a = GtkAlignment () + a.add (pix) + a.set (0.5, 0.5, 1.0, 1.0) + vbox.pack_start (a, FALSE, TRUE, 0) except: try: - pix, msk = create_pixmap_from_xpm(self.window, None, "/tmp/updates/anaconda_header.xpm") - pixmap = GtkPixmap(pix, msk) - pixmap.show() - vbox.pack_start(pixmap, FALSE, TRUE, 0) - + im = GdkImlib.Image ("/tmp/updates/anaconda_header.png") + if im: + im.render () + pix = im.make_pixmap () + a = GtkAlignment () + a.add (pix) + a.set (0.5, 0.5, 1.0, 1.0) + vbox.pack_start (a, FALSE, TRUE, 0) except: - print "Unable to load", file + print "Unable to load anaconda_header.png" vbox.set_spacing(0) |