From: Rico Tzschichholz Date: Tue, 16 Jun 2015 05:34:33 +0000 (+0200) Subject: glib-2.0: Conditionally use boxed OptionGroup since 2.44 X-Git-Tag: 0.29.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=108a0c59502b6e00bb0782af904f12eae8c1adeb;p=thirdparty%2Fvala.git glib-2.0: Conditionally use boxed OptionGroup since 2.44 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 79457f181..bf2d3cf4d 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3379,7 +3379,11 @@ namespace GLib { } [Compact] +#if GLIB_2_44 + [CCode (ref_function = "g_option_group_ref", unref_function = "g_option_group_unref", type_id = "G_TYPE_OPTION_GROUP")] +#else [CCode (free_function = "g_option_group_free")] +#endif public class OptionGroup { public OptionGroup (string name, string description, string help_description, void* user_data = null, DestroyNotify? destroy = null); public void add_entries ([CCode (array_length = false)] OptionEntry[] entries);