From 136aca03c7bf33e2fd7b72e1af1d16432804635d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 8 Nov 2021 17:28:02 +0000 Subject: gtk4: implement GtkPaintable::get_flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaa8071a37d583c4a16632e3f8e98a7bf50709991 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124877 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/gtk4/surfacepaintable.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vcl') diff --git a/vcl/unx/gtk4/surfacepaintable.cxx b/vcl/unx/gtk4/surfacepaintable.cxx index 052b2fbacdef..2e8aa98b26a0 100644 --- a/vcl/unx/gtk4/surfacepaintable.cxx +++ b/vcl/unx/gtk4/surfacepaintable.cxx @@ -36,6 +36,12 @@ static void surface_paintable_snapshot(GdkPaintable* paintable, GdkSnapshot* sna cairo_destroy(cr); } +static GdkPaintableFlags surface_paintable_get_flags(GdkPaintable* /*paintable*/) +{ + return static_cast(GDK_PAINTABLE_STATIC_SIZE + | GDK_PAINTABLE_STATIC_CONTENTS); +} + static int surface_paintable_get_intrinsic_width(GdkPaintable* paintable) { SurfacePaintable* self = SURFACE_PAINTABLE(paintable); @@ -51,6 +57,7 @@ static int surface_paintable_get_intrinsic_height(GdkPaintable* paintable) static void surface_paintable_init_interface(GdkPaintableInterface* iface) { iface->snapshot = surface_paintable_snapshot; + iface->get_flags = surface_paintable_get_flags; iface->get_intrinsic_width = surface_paintable_get_intrinsic_width; iface->get_intrinsic_height = surface_paintable_get_intrinsic_height; } -- cgit