gdk: Deprecate gdk_surface_set_opaque_region()

This commit is contained in:
Benjamin Otte 2024-08-09 07:29:58 +02:00
parent bb0eb3af45
commit f8a30ddfc1
2 changed files with 4 additions and 1 deletions

View File

@ -2696,6 +2696,9 @@ gdk_surface_update_opaque_region (GdkSurface *self)
* is opaque, as we know where the opaque regions are. If your surface
* background is not opaque, please update this property in your
* [GtkWidgetClass.css_changed](../gtk4/vfunc.Widget.css_changed.html) handler.
*
* Deprecated: 4.16: GDK can figure out the opaque parts of a window itself
* by inspecting the contents that are drawn.
*/
void
gdk_surface_set_opaque_region (GdkSurface *surface,

View File

@ -125,7 +125,7 @@ void gdk_surface_request_layout (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
GdkFrameClock* gdk_surface_get_frame_clock (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_4_16
void gdk_surface_set_opaque_region (GdkSurface *surface,
cairo_region_t *region);