[vala/0.48] gtk4: Mark optional methods of Gdk.Paintable interface as virtual
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] gtk4: Mark optional methods of Gdk.Paintable interface as virtual
- Date: Tue, 30 Jun 2020 08:31:14 +0000 (UTC)
commit 1353c3c8bac0efdb0d538ae214aad5d1cfeedcfe
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Jun 30 08:03:48 2020 +0200
gtk4: Mark optional methods of Gdk.Paintable interface as virtual
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1021
vapi/gtk4.vapi | 10 +++++-----
vapi/metadata/Gdk-4.0.metadata | 5 +++++
2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index d41e933e9..f7f1d2e95 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -5391,11 +5391,11 @@ namespace Gdk {
public void compute_concrete_size (double specified_width, double specified_height, double
default_width, double default_height, out double concrete_width, out double concrete_height);
[CCode (cname = "gdk_paintable_new_empty")]
public static Gdk.Paintable empty (int intrinsic_width, int intrinsic_height);
- public abstract Gdk.Paintable get_current_image ();
- public abstract Gdk.PaintableFlags get_flags ();
- public abstract double get_intrinsic_aspect_ratio ();
- public abstract int get_intrinsic_height ();
- public abstract int get_intrinsic_width ();
+ public virtual Gdk.Paintable get_current_image ();
+ public virtual Gdk.PaintableFlags get_flags ();
+ public virtual double get_intrinsic_aspect_ratio ();
+ public virtual int get_intrinsic_height ();
+ public virtual int get_intrinsic_width ();
public static Gdk.Paintable new_empty (int intrinsic_width, int intrinsic_height);
public abstract void snapshot (Gdk.Snapshot snapshot, double width, double height);
[HasEmitter]
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 0f3b2f4cf..fdee074d5 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -17,6 +17,11 @@ Event
._get_distance skip
Paintable
.new_empty name="empty"
+ .get_current_image#virtual_method virtual
+ .get_flags#virtual_method virtual
+ .get_intrinsic_width#virtual_method virtual
+ .get_intrinsic_height#virtual_method virtual
+ .get_intrinsic_aspect_ratio#virtual_method virtual
PaintableFlags cprefix="GDK_PAINTABLE_"
.size name="STATIC_SIZE"
.contents name="STATIC_CONTENTS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]