]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Fix bootstrap with valac < 0.26
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Mar 2018 14:27:53 +0000 (15:27 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Mar 2018 14:27:53 +0000 (15:27 +0100)
vapi/gobject-2.0.vapi

index 520cc52661ef4da0f39e9a5baa4fed1dc1a3cb0f..b9a09adbfd21a20e3b5d2ab49116db6693cf7da2 100644 (file)
@@ -152,7 +152,11 @@ namespace GLib {
                public static unowned GLib.ParamSpec? interface_find_property (GLib.TypeInterface g_iface, string property_name);
                public static void interface_install_property (GLib.TypeInterface g_iface, GLib.ParamSpec pspec);
                [CCode (array_length_pos = 1.1, array_length_type = "guint")]
+#if VALA_0_26
                public static (unowned GLib.ParamSpec)[] interface_list_properties (GLib.TypeInterface g_iface);
+#else
+               public static unowned GLib.ParamSpec[] interface_list_properties (GLib.TypeInterface g_iface);
+#endif
                public bool is_floating ();
                public static GLib.Object @new (GLib.Type type, ...);
                public static GLib.Object new_valist (GLib.Type type, string? firstprop, va_list var_args);