summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-11-16 21:57:27 +0000
committerbfox <bfox>2000-11-16 21:57:27 +0000
commit3caa48526d6b345e571c79ff546ea15ec7aac4b6 (patch)
tree92eb01cf1bf54ac063d27e07e0fefdccc096cabd /gui.py
parent658a79f79e89b051e14aef8e357bac5fb054cf66 (diff)
downloadanaconda-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-xgui.py42
1 files changed, 25 insertions, 17 deletions
diff --git a/gui.py b/gui.py
index 2c8e43a52..44a031023 100755
--- a/gui.py
+++ b/gui.py
@@ -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)