summaryrefslogtreecommitdiffstats
path: root/xf86config.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-02 14:34:41 +0000
committerMatt Wilson <msw@redhat.com>1999-09-02 14:34:41 +0000
commitee2b065667450b131d93a0226a87ecb117d78e10 (patch)
tree5ada4e3324d8db8e0c4d713a4e7f1cc13c75c6b2 /xf86config.py
parentb21311d58b51eb6d0bdf4f53a373f053b75a2c5c (diff)
downloadanaconda-ee2b065667450b131d93a0226a87ecb117d78e10.tar.gz
anaconda-ee2b065667450b131d93a0226a87ecb117d78e10.tar.xz
anaconda-ee2b065667450b131d93a0226a87ecb117d78e10.zip
fixed
Diffstat (limited to 'xf86config.py')
-rw-r--r--xf86config.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/xf86config.py b/xf86config.py
index 96e2cbab1..fb73cdf90 100644
--- a/xf86config.py
+++ b/xf86config.py
@@ -93,7 +93,7 @@ class XF86Config:
return cards
def monitors (self, lines = None):
- monitors = []
+ monitors = {}
if not lines:
db = open ('/usr/X11R6/share/Xconfigurator/MonitorsDB')
lines = db.readlines ()
@@ -105,7 +105,9 @@ class XF86Config:
continue
if line and line[0] == '#':
continue
- monitors.append (string.split (line, ';', 1)[0])
+ fields = string.split (line, ';')
+ print fields
+ monitors [fields[0]] = (fields[2], fields[3])
return monitors
def setVidcard (self, card):
@@ -212,7 +214,7 @@ Section "Pointer"
Emulate3Buttons
Emulate3Timeout 50
EndSection
-""" % settings)
+""" % self.mouse)
config.write (self.monitorSection ())
config.write (self.deviceSection ())