diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-27 12:15:27 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-27 12:15:27 +0000 |
commit | 07ac270b046ee2918e6f94e7b1c8d99ce8fb287b (patch) | |
tree | 1d10c8cf194e8cc97f8a57f51a61560ce218dba4 /iw | |
parent | 4abfda626d173efcc6b4f1ca10fe9bed19d36878 (diff) | |
download | anaconda-07ac270b046ee2918e6f94e7b1c8d99ce8fb287b.tar.gz anaconda-07ac270b046ee2918e6f94e7b1c8d99ce8fb287b.tar.xz anaconda-07ac270b046ee2918e6f94e7b1c8d99ce8fb287b.zip |
fix for gafton
Diffstat (limited to 'iw')
-rw-r--r-- | iw/language.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/iw/language.py b/iw/language.py index 79202eefd..0d11e623a 100644 --- a/iw/language.py +++ b/iw/language.py @@ -38,17 +38,22 @@ class LanguageWindow (InstallWindow): label.set_alignment (0.5, 0.5) language_keys = self.languages.keys () + language_keys.sort () self.language = GtkCList () self.language.set_selection_mode (SELECTION_BROWSE) self.language.connect ("select_row", self.select_row) - for locale in language_keys[1:]: + default = -1 + n = 0 + for locale in language_keys: row = self.language.append ((locale,)) + if self.languages[locale] == self.todo.language.get (): + default = n + n = n + 1 - default = self.languages.values ().index (self.todo.language.get ()) if default > 0: - self.language.select_row (default - 1, 0) + self.language.select_row (default, 0) sw = GtkScrolledWindow () sw.set_border_width (5) |