mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
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:
parent
180dd5fb7f
commit
a75de5fb90
@ -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))
|
||||
|
@ -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,
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* Dummy header for the Win32 backend. */
|
||||
|
||||
typedef void *HDC;
|
||||
typedef void *HGDIOBJ;
|
||||
typedef void *HICON;
|
||||
typedef void *HWND;
|
||||
|
Loading…
Reference in New Issue
Block a user