summaryrefslogtreecommitdiffstats
path: root/iw/xconfig.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-21 03:45:36 +0000
committerMatt Wilson <msw@redhat.com>1999-09-21 03:45:36 +0000
commitef28da7ac043a3817958446491f125437f95c2e4 (patch)
tree902e3e47120ab8e494137e90cfa3e44a8a3269d3 /iw/xconfig.py
parent746429b659022d210f20642b4197e836b6455c7e (diff)
downloadanaconda-ef28da7ac043a3817958446491f125437f95c2e4.tar.gz
anaconda-ef28da7ac043a3817958446491f125437f95c2e4.tar.xz
anaconda-ef28da7ac043a3817958446491f125437f95c2e4.zip
x improvements
Diffstat (limited to 'iw/xconfig.py')
-rw-r--r--iw/xconfig.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/iw/xconfig.py b/iw/xconfig.py
index 6046192bb..e7dab6601 100644
--- a/iw/xconfig.py
+++ b/iw/xconfig.py
@@ -27,7 +27,7 @@ class XCustomWindow (InstallWindow):
def getNext (self):
newmodes = {}
-
+
for depth in self.toggles.keys ():
newmodes[depth] = []
for (res, button) in self.toggles[depth]:
@@ -44,7 +44,16 @@ class XCustomWindow (InstallWindow):
pass
else:
self.didTest = 1
-
+
+ def numCompare (self, first, second):
+ first = string.atoi (first)
+ second = string.atoi (second)
+ if first > second:
+ return 1
+ elif first < second:
+ return -1
+ return 0
+
def getScreen (self):
box = GtkVBox (FALSE, 5)
box.set_border_width (5)
@@ -52,7 +61,7 @@ class XCustomWindow (InstallWindow):
hbox = GtkHBox (FALSE, 5)
depths = self.todo.x.modes.keys ()
- depths.sort ()
+ depths.sort (self.numCompare)
self.toggles = {}
for depth in depths:
@@ -160,7 +169,7 @@ class XConfigWindow (InstallWindow):
self.autoBox.pack_start (result, FALSE)
self.monlist = None
- if not self.todo.x.monID:
+ if self.todo.x.monID == "My Monitor":
label = GtkLabel (_("Your monitor could not be "
"autodetected. Please choose it "
"from the list below:"))