texture: Fix compilation by avoiding to include not-yet available headers
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 18 Mar 2018 19:52:46 +0000 (20:52 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 18 Mar 2018 19:52:46 +0000 (20:52 +0100)
gdk/gdktexture.c

index c2557c428043963413a567da78160e72903ae105..d9f8d6fd48951f8f3b4f547b2b3d7bf08b2d09f2 100644 (file)
 #include "gdkinternals.h"
 #include "gdkmemorytextureprivate.h"
 #include "gdkpaintable.h"
+#include "gdksnapshot.h"
 
-#define GTK_COMPILATION
-#include "gtk/gtksnapshot.h"
+#include <graphene.h>
+
+/* HACK: So we don't need to include any (not-yet-created) GSK or GTK headers */
+void
+gtk_snapshot_append_texture (GdkSnapshot            *snapshot,
+                             GdkTexture             *texture,
+                             const graphene_rect_t  *bounds,
+                             const char             *name,
+                             ...) G_GNUC_PRINTF (4, 5);
 
 /**
  * SECTION:gdktexture