summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-28 20:02:41 +0000
committerbfox <bfox>2000-12-28 20:02:41 +0000
commit58f436ffb5cf8d0a2b4bf6b055294ece9939b3db (patch)
tree20e9bb8e2890fbb2803dadc4bdbcd173f22bbd1e
parent6caa5fa31281f8fe14b96e253379b022afff6cf4 (diff)
downloadanaconda-58f436ffb5cf8d0a2b4bf6b055294ece9939b3db.tar.gz
anaconda-58f436ffb5cf8d0a2b4bf6b055294ece9939b3db.tar.xz
anaconda-58f436ffb5cf8d0a2b4bf6b055294ece9939b3db.zip
Fixed release notes screen bug with the screen borders.
-rwxr-xr-xgui.py91
1 files changed, 26 insertions, 65 deletions
diff --git a/gui.py b/gui.py
index 9acf7a9ee..ab5a95684 100755
--- a/gui.py
+++ b/gui.py
@@ -7,6 +7,7 @@ from _gtk import gtk_set_locale
import GdkImlib
from GDK import *
import time
+import glob
im = None
splashwindow = None
@@ -497,88 +498,48 @@ class InstallControlWindow:
table = GtkTable(3, 3, FALSE)
+ #--Find and render the borders for the release notes window
+ #--Necessary because we're not running a window manager
+ pixmaps1 = glob.glob("/usr/share/anaconda/pixmaps/border_*")
+ pixmaps2 = glob.glob("pixmaps/border_*")
- try:
- im = GdkImlib.Image ("pixmaps/border_top_left.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ if len(pixmaps1) < len(pixmaps2):
+ files = pixmaps2
+ else:
+ files = pixmaps1
+
+ for file in files:
+ im = GdkImlib.Image (file)
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+
+ if string.find (file, "border_top_left.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 0, 1, 0, 1, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_top.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_top.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 1, 2, 0, 1, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_top_right.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_top_right.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 2, 3, 0, 1, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_left.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_left.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 0, 1, 1, 2, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_right.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_right.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 2, 3, 1, 2, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_bottom_left.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_bottom_left.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 0, 1, 2, 3, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_bottom.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_bottom.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 1, 2, 2, 3, SHRINK, FILL)
-
- im = GdkImlib.Image ("pixmaps/border_bottom_right.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
+ elif string.find (file, "border_bottom_right.png") > 0:
a.set (0, 0, 1.0, 1.0)
table.attach (a, 2, 3, 2, 3, SHRINK, FILL)
-
-
- except:
- print "Unable to load left_border.png"
-
-
-
-
-
+ #--End of table border creation
vbox1 = GtkVBox ()
vbox1.set_border_width (10)