]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Hide Thread constructors when targeting GLib < 2.32
authorJürg Billeter <j@bitron.ch>
Sat, 17 Mar 2012 13:53:58 +0000 (14:53 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 17 Mar 2012 13:53:58 +0000 (14:53 +0100)
Fixes bug 672284.

vapi/glib-2.0.vapi

index 660427340a8e87e04e20951585dd09a103105d82..74c707cc684379b25052ede6f072b5872d226d1c 100644 (file)
@@ -1824,9 +1824,11 @@ namespace GLib {
        [CCode (ref_function = "g_thread_ref", unref_function = "g_thread_unref")]
 #endif
        public class Thread<T> {
+#if GLIB_2_32
                public Thread (string? name, ThreadFunc<T> func);
                [CCode (cname = "g_thread_try_new")]
                public Thread.try (string? name, ThreadFunc<T> func) throws GLib.Error;
+#endif
                public static bool supported ();
                [Deprecated (since = "2.32", replacement = "new Thread<T> ()")]
                [CCode (simple_generics = true)]