[vala/0.54] gtk4: Fix GLib.Value parameter in ContentProvider.get_value()



commit 0f0c9f0c74eb27b1307a108df1021d6d006a2f94
Author: m-shinder <mihail shinder ml>
Date:   Wed Apr 6 17:53:52 2022 +0000

    gtk4: Fix GLib.Value parameter in ContentProvider.get_value()
    
    Value is `out caller-allocates` and it is also initialized by caller.

 vapi/gtk4.vapi                 | 2 +-
 vapi/metadata/Gdk-4.0.metadata | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 67546f8a7..9c075393e 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -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)]
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 40cb0fcbf..284cf3f84 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]