From df4f716ea0f98ddb660dfe8adc83a1cae3252810 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 29 Aug 2023 19:34:38 +0200 Subject: [PATCH] gdk: Fix compiler warning gcc's -Wlto-type-mismatch found the hack, where we copied the wrong prototype. --- gdk/gdkpaintable.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gdk/gdkpaintable.c b/gdk/gdkpaintable.c index 071b99e61d..9b4a9b113a 100644 --- a/gdk/gdkpaintable.c +++ b/gdk/gdkpaintable.c @@ -24,13 +24,16 @@ #include "gdksnapshotprivate.h" #include "gdkprivate.h" +#include + /* HACK: So we don't need to include any (not-yet-created) GSK or GTK headers */ GdkSnapshot * gtk_snapshot_new (void); void gtk_snapshot_push_debug (GdkSnapshot *snapshot, const char *message, ...) G_GNUC_PRINTF (2, 3); void gtk_snapshot_pop (GdkSnapshot *snapshot); -GdkPaintable * gtk_snapshot_free_to_paintable (GdkSnapshot *snapshot); +GdkPaintable * gtk_snapshot_free_to_paintable (GdkSnapshot *snapshot, + const graphene_size_t *size); /** * GdkPaintable: @@ -118,7 +121,7 @@ gdk_paintable_default_get_current_image (GdkPaintable *paintable) snapshot = gtk_snapshot_new (); gdk_paintable_snapshot (paintable, snapshot, width, height); - return gtk_snapshot_free_to_paintable (snapshot); + return gtk_snapshot_free_to_paintable (snapshot, NULL); } static GdkPaintableFlags -- 2.30.2