summaryrefslogtreecommitdiffstats
path: root/iw/welcome_gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-25 02:19:48 +0000
committerMatt Wilson <msw@redhat.com>2001-07-25 02:19:48 +0000
commit98f8de10a0032f3c200497970303e3b0631124fc (patch)
tree4c3962f1364dd9bc10203b90b1b7d77a3f9af696 /iw/welcome_gui.py
parent1c9ff234c13bf6fd5486033d17c199accadec49d (diff)
downloadanaconda-98f8de10a0032f3c200497970303e3b0631124fc.tar.gz
anaconda-98f8de10a0032f3c200497970303e3b0631124fc.tar.xz
anaconda-98f8de10a0032f3c200497970303e3b0631124fc.zip
Remove all python use of Imlib; replace with gdk pixbuf
Diffstat (limited to 'iw/welcome_gui.py')
-rw-r--r--iw/welcome_gui.py26
1 files changed, 5 insertions, 21 deletions
diff --git a/iw/welcome_gui.py b/iw/welcome_gui.py
index aab534e1c..4d708ea41 100644
--- a/iw/welcome_gui.py
+++ b/iw/welcome_gui.py
@@ -2,7 +2,6 @@ from gtk import *
from gnome.ui import *
from iw_gui import *
from translate import _, N_
-import GdkImlib
class WelcomeWindow (InstallWindow):
@@ -13,30 +12,17 @@ class WelcomeWindow (InstallWindow):
InstallWindow.__init__ (self, ics)
ics.setGrabNext (1)
- def load_image(self, file):
- try:
- im = GdkImlib.Image("/usr/share/anaconda/" + file)
- except:
- try:
- im = GdkImlib.Image("" + file)
- except:
- print "Unable to load", file
-
- return im
-
# WelcomeWindow tag="wel"
def getScreen (self, configFileData):
frame = GtkFrame ()
frame.set_shadow_type (SHADOW_IN)
image = configFileData["WelcomeScreen"]
-
- im = self.load_image(image)
+ print "try to load", image
+ pix = self.ics.readPixmap(image)
- if im:
- im.render ()
+ if pix:
box = GtkEventBox ()
- pix = im.make_pixmap ()
style = box.get_style ().copy ()
style.bg[STATE_NORMAL] = style.white
box.set_style (style)
@@ -78,12 +64,10 @@ class ReconfigWelcomeWindow (InstallWindow):
box.set_border_width (5)
frame.add (box)
- im = self.ics.readPixmap ("first-375.png")
+ pix = self.ics.readPixmap ("first-375.png")
- if im:
- im.render ()
+ if pix:
ebox = GtkEventBox ()
- pix = im.make_pixmap ()
style = ebox.get_style ().copy ()
style.bg[STATE_NORMAL] = style.white
ebox.set_style (style)