]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Conditionally use boxed OptionContext since 2.44
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 16 Feb 2015 22:26:16 +0000 (23:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 16 Feb 2015 22:26:16 +0000 (23:26 +0100)
vapi/glib-2.0.vapi

index 1515ffb6b6ed36ad0b7611d52f7a28b1d4ca7c51..2aa65a53780f4653deb7c7430a0a0ce82bbd52c2 100644 (file)
@@ -3305,7 +3305,11 @@ namespace GLib {
        }
 
        [Compact]
+#if GLIB_2_44
+       [CCode (ref_function = "g_option_context_ref", unref_function = "g_option_context_unref", type_id = "G_TYPE_OPTION_GROUP")]
+#else
        [CCode (free_function = "g_option_context_free")]
+#endif
        public class OptionContext {
                public OptionContext (string? parameter_string = null);
                public void set_summary (string summary);