]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: add default typeof(G) for ListStore.item_type ctor parameter
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 8 Aug 2023 05:18:21 +0000 (07:18 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 31 Jan 2024 17:51:29 +0000 (18:51 +0100)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index f7d7ba51ffb63863007cdeb65cbe9a51cf07b6f7..c5cb62e694bfacfc1ef3d6797aae2e12e6ce2f2f 100644 (file)
@@ -1794,7 +1794,7 @@ namespace GLib {
        public sealed class ListStore<G> : GLib.Object, GLib.ListModel<G> where G : GLib.Object {
                [CCode (has_construct_function = false)]
                [Version (since = "2.44")]
-               public ListStore (GLib.Type item_type);
+               public ListStore (GLib.Type item_type = typeof (G));
                [Version (since = "2.44")]
                public void append (GLib.Object item);
                [Version (since = "2.64")]
index b07952b73c2b8aaa973ef4bcae54a11471aa6a1f..3a8483547c4816ecc3e811f8be2c2ad7544fcb73 100644 (file)
@@ -170,6 +170,7 @@ ListStore type_parameters="GLib.Object:G" implements="GLib.ListModel<G>"
   .find_with_equal_func.equal_func type_arguments="GLib.Object"
   .find_with_equal_func_full.equal_func type_arguments="GLib.Object"
   .insert_sorted.compare_func type_arguments="GLib.Object"
+  .new.item_type default=typeof(G)
   .sort.compare_func type_arguments="GLib.Object"
 MemoryInputStream
   .add_data.destroy default=GLib.g_free