]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Add some missing type-arguments
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 13 Mar 2021 20:30:03 +0000 (21:30 +0100)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index c8df66d734afc3b0d37fce16967a26deb0cc874d..12daf3f56e9b7766e46014f4ad5ab05d6866d359 100644 (file)
@@ -1682,7 +1682,7 @@ namespace GLib {
                [Version (since = "2.64")]
                public bool find (GLib.Object item, out uint position);
                [Version (since = "2.64")]
-               public bool find_with_equal_func (GLib.Object item, GLib.EqualFunc equal_func, out uint position);
+               public bool find_with_equal_func (GLib.Object item, GLib.EqualFunc<GLib.Object> equal_func, out uint position);
                [Version (since = "2.44")]
                public void insert (uint position, GLib.Object item);
                [Version (since = "2.44")]
@@ -2284,10 +2284,10 @@ namespace GLib {
                public void changed (string key, void* origin_tag);
                [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
                [Version (since = "2.26")]
-               public void changed_tree (GLib.Tree tree, void* origin_tag);
+               public void changed_tree ([CCode (type = "GTree*")] GLib.Tree<string,GLib.Variant> tree, void* origin_tag);
                [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
                [Version (since = "2.26")]
-               public static void flatten_tree (GLib.Tree tree, out string path, [CCode (array_length = false, array_null_terminated = true)] out (unowned string)[] keys, [CCode (array_length = false, array_null_terminated = true)] out (unowned GLib.Variant)[] values);
+               public static void flatten_tree ([CCode (type = "GTree*")] GLib.Tree<string,GLib.Variant> tree, out string path, [CCode (array_length = false, array_null_terminated = true)] out (unowned string)[] keys, [CCode (array_length = false, array_null_terminated = true)] out (unowned GLib.Variant)[] values);
                [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
                [Version (since = "2.28")]
                public static GLib.SettingsBackend get_default ();
@@ -2337,7 +2337,7 @@ namespace GLib {
                public virtual bool write (string key, GLib.Variant value, void* origin_tag);
                [CCode (cheader_filename = "gio/gsettingsbackend.h", feature_test_macro = "G_SETTINGS_ENABLE_BACKEND")]
                [NoWrapper]
-               public virtual bool write_tree (GLib.Tree tree, void* origin_tag);
+               public virtual bool write_tree ([CCode (type = "GTree*")] GLib.Tree<string,GLib.Variant> tree, void* origin_tag);
        }
        [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_ref", type_id = "g_settings_schema_get_type ()", unref_function = "g_settings_schema_unref")]
        [Compact]
index 483b8f06299b622bbb1c0d131876ca4470efec8f..b4bdd692d5694b7f12d477a1c81e0304ff46307d 100644 (file)
@@ -55,6 +55,9 @@ dbus_address_get_for_bus_sync parent="GLib.BusType" name="get_address_sync"
 SETTINGS_BACKEND_EXTENSION_POINT_NAME cheader_filename="gio/gsettingsbackend.h" feature_test_macro="G_SETTINGS_ENABLE_BACKEND"
 SettingsBackend
   .* cheader_filename="gio/gsettingsbackend.h" feature_test_macro="G_SETTINGS_ENABLE_BACKEND"
+  .changed_tree.tree type="GLib.Tree<string,GLib.Variant>"
+  .flatten_tree.tree type="GLib.Tree<string,GLib.Variant>"
+  .write_tree.tree type="GLib.Tree<string,GLib.Variant>"
 
 Action
   .parameter_type nullable
@@ -157,6 +160,7 @@ ListModel
   .get_item#virtual_method skip
   .get_item#method skip=false abstract type="GLib.Object?"
 ListStore
+  .find_with_equal_func.equal_func type_arguments="GLib.Object"
   .insert_sorted.compare_func type_arguments="GLib.Object"
   .sort.compare_func type_arguments="GLib.Object"
 MemoryInputStream