diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-25 02:19:48 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-25 02:19:48 +0000 |
commit | 98f8de10a0032f3c200497970303e3b0631124fc (patch) | |
tree | 4c3962f1364dd9bc10203b90b1b7d77a3f9af696 /splashscreen.py | |
parent | 1c9ff234c13bf6fd5486033d17c199accadec49d (diff) | |
download | anaconda-98f8de10a0032f3c200497970303e3b0631124fc.tar.gz anaconda-98f8de10a0032f3c200497970303e3b0631124fc.tar.xz anaconda-98f8de10a0032f3c200497970303e3b0631124fc.zip |
Remove all python use of Imlib; replace with gdk pixbuf
Diffstat (limited to 'splashscreen.py')
-rw-r--r-- | splashscreen.py | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/splashscreen.py b/splashscreen.py index e5adcfe3e..44e35258a 100644 --- a/splashscreen.py +++ b/splashscreen.py @@ -22,7 +22,7 @@ from gtk import * from gtk import _root_window from flags import flags import GDK -import GdkImlib +import gdkpixbuf splashwindow = None @@ -46,38 +46,35 @@ def splashScreenShow(configFileData): def load_image(file): try: -# im = GdkImlib.Image("/usr/share/anaconda/pixmaps/" + file) - im = GdkImlib.Image("/usr/share/anaconda/" + file) + p = gdkpixbuf.new_from_file("/usr/share/anaconda/" + file) except: try: - im = GdkImlib.Image("" + file) + p = gdkpixbuf.new_from_file("" + file) except: - im = None + p = None print "Unable to load", file - return im + return p global splashwindow width = screen_width() - im = None + p = None # If the xserver is running at 800x600 res or higher, use the # 800x600 splash screen. if width >= 800: -# im = load_image('first.png') image = configFileData["Splashscreen"] - im = load_image(image) + p = load_image(image) else: - im = load_image('pixmaps/first-lowres.png') + p = load_image('pixmaps/first-lowres.png') - if im: - im.render () + if p: + pix = apply (GtkPixmap, p.render_pixmap_and_mask()) splashwindow = GtkWindow () splashwindow.set_position (WIN_POS_CENTER) box = GtkEventBox () - pix = im.make_pixmap () style = box.get_style ().copy () style.bg[STATE_NORMAL] = style.white box.set_style (style) |