texture: Fix compilation by avoiding to include not-yet available headers

This commit is contained in:
Rico Tzschichholz 2018-03-18 20:52:46 +01:00
parent ea84e974e6
commit 4642e86284

View File

@ -39,9 +39,17 @@
#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