From: Sergey Bugaev Date: Wed, 11 Jun 2025 12:32:16 +0000 (+0300) Subject: gobject-2.0: Add Type.to_string () X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a0ccf4e2a43c2523e9fb1649e8025351a74c7cd5;p=thirdparty%2Fvala.git gobject-2.0: Add Type.to_string () Fixes formatting types via string interpolation. --- diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index 04a3fee33..b35ac074c 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -739,6 +739,8 @@ namespace GLib { [CCode (cname = "G_TYPE_IS_VALUE_TYPE")] public bool is_value_type (); public unowned string name (); + [CCode (cname = "g_type_name")] + public unowned string to_string (); public GLib.Type parent (); public GLib.Quark qname (); public void query (out GLib.TypeQuery query);