diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-11-14 21:45:52 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-11-14 21:45:52 +0000 |
commit | bd2d6b94fb84439a7420a62cfce42322794ce98e (patch) | |
tree | 7717430deed165d8c0b51f5c5838ff9892041e4d /gui.py | |
parent | d17769ea2531484716fd0b65679d56d030660bcd (diff) | |
download | anaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.tar.gz anaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.tar.xz anaconda-bd2d6b94fb84439a7420a62cfce42322794ce98e.zip |
use stock function for finding header pixmap
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -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) |