diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-09 12:47:17 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-09 12:47:17 (GMT) |
commit | 6afd512d55dacc16758428d15dd06dd41ce8f889 (patch) | |
tree | 48892b585e152bad7692c972d49452dfed9c099f /sugar-emulator | |
parent | c255a7b544ff773b8f77531d99b363e70fc7b0dd (diff) |
Cleanup kbd config passing
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sugar-emulator b/sugar-emulator index 98e51d3..c87dc71 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -47,17 +47,21 @@ else: program = sys.argv[1] if gtk.gdk.screen_width() < 1200 or gtk.gdk.screen_height() < 900: - fullscreen = True width = -1 height = -1 else: - fullscreen = False width = 1200 height = 900 dpi = min(_sugar.get_screen_dpi(), 96) -emulator = Emulator(width, height, fullscreen, dpi) +if sourcedir: + kbd_config = os.path.join(sourcedir, 'shell/data/kbdconfig') +else: + kbd_config = os.path.join(env.get_data_dir(), 'kbdconfig') + +emulator = Emulator(width, height, dpi) +emulator.set_keyboard_config(kbd_config) emulator.start() if sourcedir: |