summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-23 16:54:59 +0000
committerMike Fulbright <msf@redhat.com>2003-05-23 16:54:59 +0000
commit91be865548372738cce29b3c23783be281861e93 (patch)
treefd9639549b47ac54f87d58a9244e05ae65dfdd4e /iw
parent936bc2fabe22c930770c6e083c8153bba7e71bd9 (diff)
downloadanaconda-91be865548372738cce29b3c23783be281861e93.tar.gz
anaconda-91be865548372738cce29b3c23783be281861e93.tar.xz
anaconda-91be865548372738cce29b3c23783be281861e93.zip
handle Generic monitors differently
Diffstat (limited to 'iw')
-rw-r--r--iw/xconfig_gui.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 1f81df000..737325035 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -639,8 +639,12 @@ class MonitorWindow (InstallWindow):
keys.sort ()
# treat Generic monitors special
- keys.remove("Generic")
- keys.insert(0, "Generic")
+ idx = 0
+ for man in ["Generic LCD Display", "Generic CRT Display", "Generic"]:
+ if man in keys:
+ keys.remove(man)
+ keys.insert(idx, man)
+ idx += 1
self.currentMonitor = None
toplevels={}
@@ -669,16 +673,17 @@ class MonitorWindow (InstallWindow):
# now insert rest of monitors, unless we match the ddc probed id
for man in keys:
- if man == "Generic":
- title = _("Generic")
+ models = monitorslist[man]
+ if man in ["Generic LCD Display", "Generic CRT Display", "Generic"]:
+ title = _(man)
+ # dont sort generic, present in order in file
else:
title = man
+ models.sort()
toplevels[man] = self.monitorstore.append(None)
self.monitorstore.set_value(toplevels[man], 0, man)
-
- models = monitorslist[man]
- models.sort()
+
previous_monitor = ""
for amonitor in models:
if previous_monitor != "":