]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
io-svg.c: use new gdk_pixbuf_get_from_surface.h; drop gdk/gdk.h
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 00:13:43 +0000 (20:13 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 00:13:43 +0000 (20:13 -0400)
io-svg.c

index a588dccec688a624cdb8c99991b1bd8666cb7209..95a0812cf9e18b57e61af10b8bf8ec5db3304ea6 100644 (file)
--- a/io-svg.c
+++ b/io-svg.c
@@ -1,13 +1,15 @@
 #include <string.h> /* memcpy, memset */
 
 #include <cairo.h>
-#include <gdk/gdk.h>
 #include <gdk-pixbuf/gdk-pixbuf.h> /* includes glib.h */
 #include <glib/gprintf.h>
 #include <libxml/parser.h>
 #include <libxml/tree.h>
 #include <svgtiny.h>
 
+/* This "header" includes extra code that we've copy/pasted from GDK */
+#include "gdk_pixbuf_get_from_surface.h"
+
 /*
  * The width and height of the viewport that we'll render the SVG
  * into. The final "picture" may not actually be this size; based on