From: Lorenz Wildberg Date: Fri, 28 Jul 2023 14:28:59 +0000 (+0300) Subject: gtk4.vapi: Add one more metadata X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9150d339161c788c7501258d2d0ff3952f99a470;p=thirdparty%2Fvala.git gtk4.vapi: Add one more metadata --- diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 489cd46c8..06b5a02de 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -6939,8 +6939,10 @@ namespace Gtk { public Builder.from_resource (string resource_path); [CCode (has_construct_function = false)] public Builder.from_string (string str, ssize_t length); - public unowned GLib.Object? get_current_object (); - public unowned GLib.Object? get_object (string name); + [CCode (no_generic_args = true)] + public unowned G? get_current_object () where G : GLib.Object; + [CCode (no_generic_args = true)] + public unowned G? get_object (string name) where G : GLib.Object; public GLib.SList get_objects (); public unowned Gtk.BuilderScope get_scope (); public unowned string? get_translation_domain (); diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 0963fd269..0ca276344 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -29,6 +29,9 @@ TreeIter struct // Generics +Builder + .get_*object type_parameters="GLib.Object:G" type="unowned G?" + BookmarkList implements="GLib.ListModel" DirectoryList implements="GLib.ListModel" StringList implements="GLib.ListModel"