gdk/win32: deprecate gdk_win32_surface_get_impl_hwnd

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-08-23 16:35:07 +04:00
parent 04ebec0fa7
commit a6418d5028
2 changed files with 13 additions and 5 deletions

View File

@ -4287,11 +4287,19 @@ gdk_win32_surface_show_window_menu (GdkSurface *surface,
return TRUE;
}
/**
* gdk_win32_surface_get_impl_hwnd:
* @surface: a `GdkSurface`
*
* Returns: the associated @surface HWND handle.
*
* Deprecated: 4.8: Use gdk_win32_surface_get_handle() instead.
*/
HWND
gdk_win32_surface_get_impl_hwnd (GdkSurface *window)
gdk_win32_surface_get_impl_hwnd (GdkSurface *surface)
{
if (GDK_IS_WIN32_SURFACE (window))
return GDK_SURFACE_HWND (window);
if (GDK_IS_WIN32_SURFACE (surface))
return GDK_SURFACE_HWND (surface);
return NULL;
}

View File

@ -70,8 +70,8 @@ G_BEGIN_DECLS
GDK_DEPRECATED_IN_4_8_FOR(GDK_IS_WIN32_SURFACE)
gboolean gdk_win32_surface_is_win32 (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
HWND gdk_win32_surface_get_impl_hwnd (GdkSurface *window);
GDK_DEPRECATED_IN_4_8_FOR(gdk_win32_surface_get_handle)
HWND gdk_win32_surface_get_impl_hwnd (GdkSurface *surface);
/* Return the Gdk* for a particular HANDLE */
GDK_AVAILABLE_IN_ALL