gtk: Support keyboard translation for hosts running Windows
GTK uses different hardware keycodes on Windows hosts, so some specialhandling is needed to get the QEMU keycode.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
ui/cocoa: Add ".qcow2" to extension list for image load dialog
Add ".qcow2" to the list of file extensions which are acceptedby the initial disk image load dialog which is displayed if theuser runs QEMU without any command line arguments.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
ui/cocoa: Fix code for starting QEMU via image file load dialog
Fix a number of bugs in the code for starting QEMU via the imagefile load dialog: * use the actual argv0 rather than "qemu": this avoids failures to find BIOS image files caused by not looking in the correct directory...
ui/cocoa: Redraw at correct size when switching surface
If the surface switch involved a resize, we were doing the redrawat the old size rather than the new, because the update ofscreen.width and screen.height was being done after the setFramemethod calls which triggered a redraw. Normally this isn't very...
ui/cocoa: Draw black rectangle if we have no data yet
If our redraw method is called before we have any data from the guest,then draw a black rectangle rather than leaving the window empty.This mostly only matters when the guest machine has no framebuffer...
ui/cocoa: Remove stray tabs
The ui/cocoa.m file has just three lines with hardcoded tabs; fix them.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Message-id: 1387886052-27067-1-git-send-email-peter.maydell@linaro.org
ui/cocoa: Send warning message to stderr, not stdout
Bring a warning message into line with the others in this file bysending it to stderr, not stdout.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1386543546-31919-4-git-send-email-peter.maydell@linaro.org
ui/cocoa: Pass command key through to guest when VM has mousegrab
The guest might want to be able to use the command key for its wonpurposes (as command if it is MacOS X, or for the Windows key ifit is a PC guest, for instance). In line with other UI frontends,...
ui/cocoa: Correct typos in comments and variable names
Fix various non-user-visible typos in comments and variable names.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Message-id: 1386543546-31919-3-git-send-email-peter.maydell@linaro.org
ui/cocoa: Use macro ARRAY_SIZE where possible
This improves readability and simplifies the code.
Cc: Andreas Färber <andreas.faerber@web.de>Cc: Anthony Liguori <aliguori@amazon.com>Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
View revisions
Also available in: Atom