From 40695da0839fbdaf6c0f4815f7302a100aa6ee44 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 7 Aug 2023 20:16:49 -0400 Subject: [PATCH] gdk_pixbuf_get_from_surface.h: make gdk_pixbuf_get_from_surface() static We don't want to clash with the real one. --- gdk_pixbuf_get_from_surface.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk_pixbuf_get_from_surface.h b/gdk_pixbuf_get_from_surface.h index c3a5f96..822162c 100644 --- a/gdk_pixbuf_get_from_surface.h +++ b/gdk_pixbuf_get_from_surface.h @@ -3,6 +3,9 @@ * Having it inline means that we don't have to link against a * specific version of GTK, risking that (say) a gtk4-linked * pixbuf loader gets used on a gtk3 desktop environment. + * + * Note: the gdk_pixbuf_get_from_surface() function has been + * made static. */ static cairo_format_t gdk_cairo_format_for_content (cairo_content_t content) @@ -135,7 +138,7 @@ convert_no_alpha (guchar *dest_data, * Deprecated: 4.12: Use [class@Gdk.Texture] and subclasses instead * cairo surfaces and pixbufs */ -GdkPixbuf * +static GdkPixbuf * gdk_pixbuf_get_from_surface (cairo_surface_t *surface, int src_x, int src_y, -- 2.43.2