Drop an unnecessary argument from G_DEFINE_PROPERTIES

By renaming the variable holding the properties array (which can also
conflict with existing code) we can avoid the lowercase type name.
This commit is contained in:
Emmanuele Bassi
2013-06-27 15:07:26 +01:00
parent 55941c1e1a
commit a2a6cb2058
3 changed files with 14 additions and 15 deletions

View File

@@ -1665,8 +1665,8 @@ static void type_name##_init (TypeName *self); \
static void type_name##_class_init (TypeName##Class *klass); \
static gpointer type_name##_parent_class = NULL; \
static gint TypeName##_private_offset; \
static GParamSpec **type_name##_properties G_GNUC_UNUSED; \
static guint type_name##_properties_len G_GNUC_UNUSED; \
static GParamSpec **TypeName##_properties G_GNUC_UNUSED; \
static guint TypeName##_properties_len G_GNUC_UNUSED; \
\
_G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
\