From 6c395244a5db7ac96d0c6279c6e846e99c1dc967 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 10 Mar 2014 15:16:44 +0000 Subject: [PATCH] gparam: Add G_PARAM_READWRITE to GParamFlags Using a #define for an enumeration value buys us nothing, and it's mostly historical baggage that makes binding GObject needlessly complicated. https://bugzilla.gnome.org/show_bug.cgi?id=726037 --- gobject/gparam.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gobject/gparam.h b/gobject/gparam.h index 694630c..c706224 100644 --- a/gobject/gparam.h +++ b/gobject/gparam.h @@ -113,6 +113,7 @@ G_BEGIN_DECLS * GParamFlags: * @G_PARAM_READABLE: the parameter is readable * @G_PARAM_WRITABLE: the parameter is writable + * @G_PARAM_READWRITE: alias for %G_PARAM_READABLE | %G_PARAM_WRITABLE * @G_PARAM_CONSTRUCT: the parameter will be set upon object construction * @G_PARAM_CONSTRUCT_ONLY: the parameter will only be set upon object construction * @G_PARAM_LAX_VALIDATION: upon parameter conversion (see g_param_value_convert()) @@ -142,6 +143,7 @@ typedef enum { G_PARAM_READABLE = 1 << 0, G_PARAM_WRITABLE = 1 << 1, + G_PARAM_READWRITE = (G_PARAM_READABLE | G_PARAM_WRITABLE), G_PARAM_CONSTRUCT = 1 << 2, G_PARAM_CONSTRUCT_ONLY = 1 << 3, G_PARAM_LAX_VALIDATION = 1 << 4, @@ -155,12 +157,6 @@ typedef enum G_PARAM_DEPRECATED = 1 << 31 } GParamFlags; /** - * G_PARAM_READWRITE: - * - * #GParamFlags value alias for %G_PARAM_READABLE | %G_PARAM_WRITABLE. - */ -#define G_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE) -/** * G_PARAM_STATIC_STRINGS: * * #GParamFlags value alias for %G_PARAM_STATIC_NAME | %G_PARAM_STATIC_NICK | %G_PARAM_STATIC_BLURB. -- 2.7.4