gdk/win32: correct gdk_win32_surface_get_handle return type

The associated surface window handle is a HWND, not a HGDIOBJ.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-08-23 16:17:15 +04:00
parent 180dd5fb7f
commit a75de5fb90
3 changed files with 2 additions and 3 deletions

View File

@ -4621,7 +4621,7 @@ gdk_win32_surface_class_init (GdkWin32SurfaceClass *klass)
impl_class->compute_size = _gdk_win32_surface_compute_size;
}
HGDIOBJ
HWND
gdk_win32_surface_get_handle (GdkSurface *window)
{
if (!GDK_IS_WIN32_SURFACE (window))

View File

@ -78,7 +78,7 @@ GDK_AVAILABLE_IN_ALL
gpointer gdk_win32_handle_table_lookup (HWND handle);
/* Translate from window to Windows handle */
GDK_AVAILABLE_IN_ALL
HGDIOBJ gdk_win32_surface_get_handle (GdkSurface *window);
HWND gdk_win32_surface_get_handle (GdkSurface *window);
GDK_AVAILABLE_IN_ALL
GdkSurface * gdk_win32_surface_lookup_for_display (GdkDisplay *display,

View File

@ -1,6 +1,5 @@
/* Dummy header for the Win32 backend. */
typedef void *HDC;
typedef void *HGDIOBJ;
typedef void *HICON;
typedef void *HWND;