gdk/win32: deprecate gdk_win32_surface_is_win32
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 11:32:55 +0000 (15:32 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Aug 2022 11:34:50 +0000 (15:34 +0400)
The function isn't used by Gtk itself anymore, and does not help much.
It creates extra issues for bindings, as it doesn't fit well with code
doing the same job for other objects.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
gdk/win32/gdksurface-win32.c
gdk/win32/gdkwin32misc.h

index 6fc15f38155712bcc8d283d1f41c9e6b16b16a18..e461b0e91637eec044cb5e0e08fbe89a0d6c10d8 100644 (file)
@@ -4242,10 +4242,18 @@ gdk_win32_surface_lookup_for_display (GdkDisplay *display,
   return (GdkSurface*) gdk_win32_handle_table_lookup (anid);
 }
 
+/**
+ * gdk_win32_surface_is_win32:
+ * @surface: a `GdkSurface`
+ *
+ * Returns: %TRUE if the @surface is a win32 implemented surface.
+ *
+ * Deprecated: 4.8: Use `GDK_IS_WIN32_SURFACE` instead.
+ */
 gboolean
-gdk_win32_surface_is_win32 (GdkSurface *window)
+gdk_win32_surface_is_win32 (GdkSurface *surface)
 {
-  return GDK_IS_WIN32_SURFACE (window);
+  return GDK_IS_WIN32_SURFACE (surface);
 }
 
 static gboolean
index 3582e81572b0557e670199b2390a6efdd1ff0cee..bfa356a453a5dd8bfb2fac62ec790c732e51ebd3 100644 (file)
@@ -68,9 +68,8 @@ G_BEGIN_DECLS
 #define XBUTTON2 2
 #endif
 
-/* Return true if the GdkSurface is a win32 implemented window */
-GDK_AVAILABLE_IN_ALL
-gboolean      gdk_win32_surface_is_win32 (GdkSurface *window);
+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);