[glib] gparam: Add G_PARAM_READWRITE to GParamFlags
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gparam: Add G_PARAM_READWRITE to GParamFlags
- Date: Thu, 10 Apr 2014 19:04:19 +0000 (UTC)
commit 6c395244a5db7ac96d0c6279c6e846e99c1dc967
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Mar 10 15:16:44 2014 +0000
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 files 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]