]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Fix GLib.Value parameter in ContentProvider.get_value()
authorm-shinder <mihail@shinder.ml>
Wed, 6 Apr 2022 17:53:52 +0000 (17:53 +0000)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Aug 2022 13:59:36 +0000 (15:59 +0200)
Value is `out caller-allocates` and it is also initialized by caller.

vapi/gtk4.vapi
vapi/metadata/Gdk-4.0.metadata

index 67546f8a78928728d54dd1451cef4e30ef228229..9c075393ec5cb9e2bdcfebc9ab549f0b3f07ec1a 100644 (file)
@@ -4890,7 +4890,7 @@ namespace Gdk {
                public ContentProvider.for_bytes (string mime_type, GLib.Bytes bytes);
                [CCode (has_construct_function = false)]
                public ContentProvider.for_value (GLib.Value value);
-               public virtual bool get_value (GLib.Value value) throws GLib.Error;
+               public virtual bool get_value (ref GLib.Value value) throws GLib.Error;
                public virtual Gdk.ContentFormats ref_formats ();
                public virtual Gdk.ContentFormats ref_storable_formats ();
                [CCode (has_construct_function = false)]
index 40cb0fcbfcf3ecea86d2efcd6c24ee29dde61db0..284cf3f84a6a3e2c89a706ddfa351dabebac3a05 100644 (file)
@@ -8,6 +8,8 @@ events_*#function parent="Gdk.Event" name="events_(.+)"
 
 Clipboard
         .set* skip=false
+ContentProvider
+        .get_value.value ref
 Cursor abstract=false
 Device
         .get_surface_at_position skip=false