[glib/wip/gproperty-2: 9/10] gproperty: Add prerequisite macro



commit 4697716467d2c6c7f983734bd26ff52cf077b295
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jun 17 19:05:09 2013 +0100

    gproperty: Add prerequisite macro

 gobject/gproperty.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gproperty.h b/gobject/gproperty.h
index 53f5c3b..d6416b3 100644
--- a/gobject/gproperty.h
+++ b/gobject/gproperty.h
@@ -479,6 +479,20 @@ void            g_property_init_default        (GProperty *property,
   g_property_set_range (g_property, p_min, p_max);
 
 /**
+ * G_PROPERTY_PREREQUISITE:
+ * @type: the prerequisite type for the property
+ *
+ * Sets the prerequisite type for enumeration, flags, boxed,
+ * and object properties.
+ *
+ * This macro can only be called inside %G_DEFINE_PROPERTY_EXTENDED.
+ *
+ * Since: 2.38
+ */
+#define G_PROPERTY_PREREQUISITE(type) \
+  g_property_set_prerequisite (g_property, type);
+
+/**
  * G_DECLARE_PROPERTY:
  * @T_N: the name of type type, in CamelCase
  * @name: the name of the property, with '-' replaced by '_'


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