[vala] glib-2.0: Conditionally use boxed OptionContext since 2.44



commit 559a92b2256835dc6f933733a30cd98d462b33b0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 16 23:26:16 2015 +0100

    glib-2.0: Conditionally use boxed OptionContext since 2.44

 vapi/glib-2.0.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 1515ffb..2aa65a5 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]