summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-06-28 20:43:46 +0000
committerMike Fulbright <msf@redhat.com>2001-06-28 20:43:46 +0000
commit93200f2e56fb8bb76892b4399f679c32228f602c (patch)
tree6d3f900fee93baaae86cffc12917e6979e2a8b44 /gui.py
parent6901b63410c3ad3103680b97c8991eebcf084144 (diff)
downloadanaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.gz
anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.tar.xz
anaconda-93200f2e56fb8bb76892b4399f679c32228f602c.zip
set keyboard type if passed to anaconda
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/gui.py b/gui.py
index 0fb9c6d0c..6a6e9a1af 100755
--- a/gui.py
+++ b/gui.py
@@ -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)