gtk: don't use g_object_unref on GdkCursor
It's not a GObject.
Cc: Gerd Hoffman <kraxel@redhat.com>Reported-by: Michael Tokarev <mjt@tls.msk.ru>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>---v1 -> v2 - Fix summary to agree with code (Peter)
gtk: don't resize window when enabling scaling
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cocoa: Avoid deprecated NSOpenPanel beginSheetForDirectory
In MacOSX 10.6 and above the NSOpenPanel beginSheetForDirectorymethod is deprecated. Use the preferred replacements instead.We retain the original code for use on earlier MacOSX versionsbecause the replacement methods don't exist before 10.6....
cocoa: Avoid deprecated NSOpenPanel filename method
Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6)in favour of using the URL method and extracting the path from theresulting NSUrl object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
cocoa: Avoid deprecated CPS* functions
The functions CPSGetCurrentProcess and CPSEnableForegroundOperationare deprecated in newer versions of MacOSX and cause warning messagesto be logged to the system log. Instead, use the new preferred methodof promoting our console process up to a graphical app with menubar...
cocoa: Fix leaks of NSScreen and NSConcreteMapTable
On MacOSX 10.8 QEMU provokes system log messages:11/03/2013 17:03:29.998 qemu-system-arm42586: objc42586: Object0x7ffbf9c2f3b0 of class NSScreen autoreleased with no pool in place - justleaking - break on objc_autoreleaseNoPool() to debug...
ui/input.c: replace magic numbers with macros
It's clearer to use defined macros than magic numbers.
Signed-off-by: Amos Kong <akong@redhat.com>Reviewed-by: Lei Li <lilei@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
vnc: Make ledstate comparison before modifiers updated
The ledstate should be compared before modifiers updated,otherwise the ledstate would be the same as current_led_state.
Reported-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>...
portability: pty.h is glibc-specific
This should fix building the GTK+ front-end on BSDs.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Message-id: 1368533121-30796-1-git-send-email-pbonzini@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/gtk.c: do not use gdk_display_warp_pointer when GTK ver >3.0
Commit 9697f5d2d38e5dd1e64e8e0d64436e6d44e7b1fe "gtk: custom cursor support" introduced unconditional usage of gdk_display_warp_pointer(). This functionis marked as deprecated since GTK-3.0, and triggers warning (error with -Werror)...
View revisions
Also available in: Atom