Add compat macro for gtk_widget_get_realized
The gtk_widget_get_realized method only arrived in GTK 2.20,so defined a compat macro for earlier GTK
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>Message-id: 1361805646-6425-13-git-send-email-berrange@redhat.com...
Add support for enabling build with GTK3
Add a arg to configure to switch from GTK2 (default) toGTK3 (optional) build for QEMU.
./configure --with-gtkabi=3.0
will choose GTK3, while
./configure --with-gtkabi=2.0
will choose GTK2 (and remains the current default)...
Replace expose-event handler with draw handler in GTK3
In GTK3 the 'expose-event' signal has been replaced by a new'draw' signal. The only difference is that the latter willpre-create the cairo drawing context & set the clip mask.Since the drawing code is already structured in a nice way,...
Ensure x_keymap.o is built when GTK is enabled
The x_keymap.o file is required by both GTK and SDL builds,so it must be explicitly listed as a GTK dep to ensure thelinker works when SDL is disabled
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>...
Replace gtk_menu_append with gtk_menu_shell_append
The gtk_menu_append method has long been deprecated in favourof the gtk_menu_shell_append method. The former is now entirelygone in GTK3, so switch all code to the latter which works onboth GTK2 and GTK3...
Conditionalize use of gdk_display_warp_pointer
In GTK3 the gdk_display_warp_pointer method is deprecated.Instead we should use gdk_device_warp on the GdkDeviceinstead associated with the event being processed.
Conditionalize use of gtk_widget_size_request
The gtk_widget_size_request method has been replaced bythe gtk_widget_get_preferred_size method in GTK3. Conditionallycall the new method in GTK3
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>Message-id: 1361805646-6425-9-git-send-email-berrange@redhat.com...
Conditionalize use of gdk_keyboard_grab / gdk_keyboard_ungrab
On GTK3 there is support for multiple keyboard devices, sorather than using gdk_keyboard_grab / gdk_keyboard_ungrabwe should iterate over all devices, grabbing each one inturn
Conditionalize use of gdk_pointer_grab / gdk_pointer_ungrab
On GTK3 there is support for multiple pointer devices, sorather than using gdk_pointer_grab / gdk_pointer_ungrabwe should iterate over all devices, grabbing each one inturn
Remove use of GtkVBox in GTK3
The GtkVBox class is deprecated, in favour of just using theGtkBox class directly. Eventually even GtkBox will bedeprecated in favour of GtkGrid, but that is a bigger fixwhich can wait.
View all revisions | View revisions
Also available in: Atom