Cleanup kbd config passing

This commit is contained in:
Marco Pesenti Gritti
2007-03-09 13:47:17 +01:00
parent c255a7b544
commit 6afd512d55
2 changed files with 22 additions and 17 deletions
+7 -3
View File
@@ -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: