diff options
author | Mike Fulbright <msf@redhat.com> | 2001-06-28 20:43:46 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-06-28 20:43:46 +0000 |
commit | 93200f2e56fb8bb76892b4399f679c32228f602c (patch) | |
tree | 6d3f900fee93baaae86cffc12917e6979e2a8b44 /gui.py | |
parent | 6901b63410c3ad3103680b97c8991eebcf084144 (diff) | |
download | anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.gz anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.xz anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.zip |
set keyboard type if passed to anaconda
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -33,6 +33,7 @@ from _gtk import _gtk_nuke_rc_files, _gtk_nuke_rc_mtimes from language import expandLangs from splashscreen import splashScreenPop from log import log +from flags import flags StayOnScreen = "stayOnScreen" @@ -309,17 +310,17 @@ class InstallInterface: self.dispatch = dispatch - # XXX - #if todo.installSystem: - #try: - #kb.setMouseKeys (1) - #except SystemError: - #pass - #if todo.instClass.keyboard: - #info = todo.keyboard.getXKB() - #if info: - #(rules, model, layout, variant, options) = info - #kb.setRule (model, layout, variant, "complete") + if flags.setupFilesystems: + try: + kb.setMouseKeys (1) + except SystemError: + pass + + if id.keyboard: + info = id.keyboard.getXKB() + if info: + (rules, model, layout, variant, options) = info + kb.setRule (model, layout, variant, "complete") id.fsset.registerMessageWindow(self.messageWindow) id.fsset.registerProgressWindow(self.progressWindow) |