summaryrefslogtreecommitdiffstats
path: root/iw/xconfig_gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-28 18:06:36 +0000
committerbfox <bfox>2000-12-28 18:06:36 +0000
commit8ce265300b218c0a14292f0266af6399799b6e04 (patch)
tree558418f7bd45704e9805725e6c4fb2ee1e567ea7 /iw/xconfig_gui.py
parentf3424ca2ddbdca363d5f6a480145bf23d9763347 (diff)
downloadanaconda-8ce265300b218c0a14292f0266af6399799b6e04.tar.gz
anaconda-8ce265300b218c0a14292f0266af6399799b6e04.tar.xz
anaconda-8ce265300b218c0a14292f0266af6399799b6e04.zip
Addresses bug #22787. Don't show button on video cards that cannon be reliably tested
Diffstat (limited to 'iw/xconfig_gui.py')
-rw-r--r--iw/xconfig_gui.py39
1 files changed, 32 insertions, 7 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 7db8353fd..d62254f1b 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -366,13 +366,38 @@ class XCustomWindow (InstallWindow):
self.box.pack_start (hbox1, FALSE)
- test = GtkAlignment (.9, 0, 0, 0)
- button = GtkButton (_(" Test Setting "))
- button.connect ("clicked", self.testPressed)
- test.add (button)
-
-# self.box.pack_start (hbox, FALSE)
- self.box.pack_start (test, FALSE)
+
+
+
+ self.sunServer = 0
+ if self.todo.x.server and len (self.todo.x.server) >= 3 and self.todo.x.server[0:3] == 'Sun':
+ self.sunServer = 1
+ else:
+ self.sunServer = 0
+
+ # cannot reliably test on i810 or Voodoo driver, or on Suns who dont
+ # need it since they are fixed resolution
+
+ self.cantprobe = 0
+ if not self.sunServer and self.todo.x.vidCards:
+ if self.todo.x.vidCards[self.todo.x.primary].has_key("DRIVER"):
+ curdriver = self.todo.x.vidCards[self.todo.x.primary]["DRIVER"]
+ noprobedriverList = ("i810", "tdfx")
+ for adriver in noprobedriverList:
+ if curdriver == adriver:
+ self.cantprobe = 1
+ else:
+ self.cantprobe = 1
+
+ if not self.cantprobe:
+ test = GtkAlignment (.9, 0, 0, 0)
+ button = GtkButton (_(" Test Setting "))
+ button.connect ("clicked", self.testPressed)
+ test.add (button)
+ self.box.pack_start (test, FALSE)
+
+
+
#--If both KDE and GNOME are selected
if ((self.todo.hdList.has_key('gnome-core')