summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-11-14 21:45:52 +0000
committerJeremy Katz <katzj@redhat.com>2003-11-14 21:45:52 +0000
commitbd2d6b94fb84439a7420a62cfce42322794ce98e (patch)
tree7717430deed165d8c0b51f5c5838ff9892041e4d /gui.py
parentd17769ea2531484716fd0b65679d56d030660bcd (diff)
downloadanaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.tar.gz
anaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.tar.xz
anaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.zip
use stock function for finding header pixmap
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py23
1 files changed, 2 insertions, 21 deletions
diff --git a/gui.py b/gui.py
index 266e6a8b8..f37906cac 100755
--- a/gui.py
+++ b/gui.py
@@ -1301,29 +1301,10 @@ class InstallControlWindow:
self.window.set_border_width(0)
vbox = gtk.VBox (gtk.FALSE, 10)
- image = self.configFileData["TitleBar"]
-
- pixbuf = None
# Create header at the top of the installer
if runres != '640x480':
- for dir in ("/usr/share/anaconda/",
- "",
- "/tmp/updates"):
- try:
- pixbuf = gtk.gdk.pixbuf_new_from_file(dir + image)
- break
- except RuntimeError:
- pass
-
- if pixbuf:
- (pixmap, mask) = pixbuf.render_pixmap_and_mask()
- pixbuf.render_to_drawable(pixmap, gtk.gdk.GC(pixmap),
- 0, 0, 0, 0,
- pixbuf.get_width(),
- pixbuf.get_height(),
- gtk.gdk.RGB_DITHER_MAX, 0, 0)
- p = gtk.Image()
- p.set_from_pixmap(pixmap, mask)
+ p = readPixmapDithered("anaconda_header.png")
+ if p is not None:
a = gtk.Alignment()
a.set(0.5, 0.5, 1.0, 1.0)
a.add(p)