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:
@@ -4621,7 +4621,7 @@ gdk_win32_surface_class_init (GdkWin32SurfaceClass *klass)
|
|||||||
impl_class->compute_size = _gdk_win32_surface_compute_size;
|
impl_class->compute_size = _gdk_win32_surface_compute_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
HGDIOBJ
|
HWND
|
||||||
gdk_win32_surface_get_handle (GdkSurface *window)
|
gdk_win32_surface_get_handle (GdkSurface *window)
|
||||||
{
|
{
|
||||||
if (!GDK_IS_WIN32_SURFACE (window))
|
if (!GDK_IS_WIN32_SURFACE (window))
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ GDK_AVAILABLE_IN_ALL
|
|||||||
gpointer gdk_win32_handle_table_lookup (HWND handle);
|
gpointer gdk_win32_handle_table_lookup (HWND handle);
|
||||||
/* Translate from window to Windows handle */
|
/* Translate from window to Windows handle */
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
HGDIOBJ gdk_win32_surface_get_handle (GdkSurface *window);
|
HWND gdk_win32_surface_get_handle (GdkSurface *window);
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GdkSurface * gdk_win32_surface_lookup_for_display (GdkDisplay *display,
|
GdkSurface * gdk_win32_surface_lookup_for_display (GdkDisplay *display,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/* Dummy header for the Win32 backend. */
|
/* Dummy header for the Win32 backend. */
|
||||||
|
|
||||||
typedef void *HDC;
|
typedef void *HDC;
|
||||||
typedef void *HGDIOBJ;
|
|
||||||
typedef void *HICON;
|
typedef void *HICON;
|
||||||
typedef void *HWND;
|
typedef void *HWND;
|
||||||
|
|||||||
Reference in New Issue
Block a user