]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
gdk_pixbuf_get_from_surface.h: make gdk_pixbuf_get_from_surface() static
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 00:16:49 +0000 (20:16 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 00:16:49 +0000 (20:16 -0400)
We don't want to clash with the real one.

gdk_pixbuf_get_from_surface.h

index c3a5f964f54756584590fba96bfaca9edec8e671..822162c79494a8ee77f5d54eea8eb7b64f142d21 100644 (file)
@@ -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,