In case version script support is not available we can still
able to filter symbols exported.
This for instance will work with linkers not supporting
--version-script (like system MacOS one).
Use new version macros similar to Glib to detect also
deprecated function.
Tested that exported symbols remains the same from both Linux
and Windows shared libraries.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
As gdk_keymap_get_default() was deprecated in 3.22
Warnings fixed:
| vncdisplaykeymap.c: In function ‘vnc_display_keyval_set_entries’:
| vncdisplaykeymap.c:263:4: warning: ‘gdk_keymap_get_default’ is
| deprecated: Use 'gdk_keymap_get_for_display' instead
|
| gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| spice-gtk-session.c: In function ‘spice_gtk_session_init’:
| spice-gtk-session.c:181:5: warning: ‘gdk_keymap_get_default’ is
| deprecated: Use 'gdk_keymap_get_for_display' instead
|
| GdkKeymap *keymap = gdk_keymap_get_default();
| ^~~~~~~~~
|
| spice-widget.c: In function ‘get_scancode_from_keyval’:
| spice-widget.c:1731:5: warning: ‘gdk_keymap_get_default’ is
| deprecated: Use 'gdk_keymap_get_for_display' instead
|
| if (gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(),
| ^~
Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
When running on Xwayland, the keycode mapping property is not available,
which causes unknown keycode mapping errors and the keyboard doesn't
work.
Check for a known scancode (“XK_Page_Up”) which differs to distinguish
between “xfree86” and “evdev” when the there is no keycode name.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
Causing build failures on win32
.libs/vncdisplaykeymap.o: In function `vnc_display_keymap_gdk2xtkbd_table':
/builddir/build/BUILD/spice-gtk-0.33.19-efbfd/build_win32/src/../../src/vncdisplaykeymap.c:198: undefined reference to `GDK_IS_WIN32_WINDOW'
collect2: error: ld returned 1 exit status
Regression from 9ff67a108b
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Since spice-gtk 57df040cc, the SpiceDisplay no longer forces its own
window. Get allocation instead of window size. This fixes a "top
border" issue in spicy with gtk+ >= 3.19.8.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>