gtk/win32: use gdk_win32_surface_get_handle
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 12:31:07 +0000 (16:31 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 12:31:09 +0000 (16:31 +0400)
commit04ebec0fa7581ddfa5d815d2de0671b2b4e45445
tree2ca72a268a2649eaa1b15bff5f495e1485358548
parent3cbf6c9d6e05ad3e89daabab1e51eba1f1072926
gtk/win32: use gdk_win32_surface_get_handle

As I propose to deprecate gdk_win32_surface_get_impl_hwnd() next,
replace it with the alternative.

The main difference between the two functions is that
gdk_win32_surface_get_impl_hwnd() fails gracefully by returning NULL if
the surface is not of the win32 implementation.

All the surfaces should be native surfaces here, and the existing code
doesn't seem to deal with NULL case anyway.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
gtk/gtkimcontextime.c