diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-22 19:03:07 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-22 19:03:07 +0000 |
commit | 5b9e7f730bc77b2e109b5de5873ef5ef7fb71ea0 (patch) | |
tree | 468017c7f6e3a5809c73e9e31d54b80c4729296d /iw | |
parent | 991f20bd2a02ddd4ba965c3b58b8d20843172d4d (diff) | |
download | anaconda-5b9e7f730bc77b2e109b5de5873ef5ef7fb71ea0.tar.gz anaconda-5b9e7f730bc77b2e109b5de5873ef5ef7fb71ea0.tar.xz anaconda-5b9e7f730bc77b2e109b5de5873ef5ef7fb71ea0.zip |
move whether the keyboard has been manually set into the keyboard object
as opposed to being in the interfaces. fixes 49618
Diffstat (limited to 'iw')
-rw-r--r-- | iw/keyboard_gui.py | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/iw/keyboard_gui.py b/iw/keyboard_gui.py index 3943fd828..252b2b684 100644 --- a/iw/keyboard_gui.py +++ b/iw/keyboard_gui.py @@ -23,8 +23,6 @@ from flags import flags from translate import _, N_ class KeyboardWindow (InstallWindow): - hasrun = 0 - windowTitle = N_("Keyboard Configuration") htmlTag = "kybd" @@ -37,20 +35,20 @@ class KeyboardWindow (InstallWindow): self.rulesbase = rules[string.rfind(rules, "/")+1:] def getNext (self): - if self.hasrun: - if self.flags.setupFilesystems: - self.kb.setRule(self.model, self.layout, self.variant, - "complete") - - self.x.setKeyboard(self.rulesbase, self.model, - self.layout, self.variant, "") + if self.flags.setupFilesystems: + self.kb.setRule(self.model, self.layout, self.variant, + "complete") + + self.x.setKeyboard(self.rulesbase, self.model, + self.layout, self.variant, "") - self.kbd.setfromx(self.model, self.layout, self.variant) + self.kbd.setfromx(self.model, self.layout, self.variant) + self.kbd.beenset = 1 - try: - isys.loadKeymap(self.kbd.get()) - except: - log("failed to load keymap") + try: + isys.loadKeymap(self.kbd.get()) + except: + log("failed to load keymap") return None @@ -74,7 +72,7 @@ class KeyboardWindow (InstallWindow): self.layout = layout self.variant = variant - if not self.hasrun: + if not self.kbd.beenset: default = instLang.getDefaultKeyboard() if Keyboard.console2x.has_key(default): @@ -182,5 +180,4 @@ class KeyboardWindow (InstallWindow): entry.connect("grab-focus", self.setMap) box.set_border_width(5) - KeyboardWindow.hasrun = 1 return box |