]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Restore CssProvider.load_from_data() signature to take an array
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 25 Aug 2023 12:24:10 +0000 (14:24 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 25 Aug 2023 12:44:21 +0000 (14:44 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1478

vapi/gtk4.vapi
vapi/metadata/Gtk-4.0.metadata

index 875602183503eb6f92734ca2eaf344ecd3bfa697..34cbd9caacc42e4eaa267cf195dbbc264825467f 100644 (file)
@@ -7912,7 +7912,7 @@ namespace Gtk {
                [Version (since = "4.12")]
                public void load_from_bytes (GLib.Bytes data);
                [Version (deprecated = true, deprecated_since = "4.12")]
-               public void load_from_data (string data, ssize_t length);
+               public void load_from_data ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize", type = "const char*")] uint8[] data);
                public void load_from_file (GLib.File file);
                public void load_from_path (string path);
                public void load_from_resource (string resource_path);
index a0a4e2a413987466d8926deb05fd52b8226ebd4f..8b50f3e51801721d5d03a5b988b09041e210c58f 100644 (file)
@@ -270,7 +270,8 @@ TreeRowData skip
 CellArea
   .cell_get_property.value ref
   .get_cell_property.value ref
-
+CssProvider
+  .load_from_data.data type="uint8[]" array array_length_idx=1
 param_spec_expression parent="Gtk.ParamSpecExpression" name="new" symbol_type="constructor"
 value_get_expression.value ref
 value_set_expression.value ref