summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-08 17:28:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-08 20:45:29 +0100
commit136aca03c7bf33e2fd7b72e1af1d16432804635d (patch)
treeddcd10abef8bf8649970833864a5072a2b09cb2e /vcl
parent7db51fdbd8c06192941666ad8f444079c334fdef (diff)
gtk4: implement GtkPaintable::get_flags
Change-Id: Iaa8071a37d583c4a16632e3f8e98a7bf50709991 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124877 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk4/surfacepaintable.cxx7
1 files changed, 7 insertions, 0 deletions
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<GdkPaintableFlags>(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;
}