[gtk-doc] tests: add an example for hiding an enum value
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] tests: add an example for hiding an enum value
- Date: Tue, 19 Oct 2010 19:03:30 +0000 (UTC)
commit 58f1ade7065fb90a0942a93f860db45b3cfc36a3
Author: Stefan Kost <ensonic users sf net>
Date: Tue Oct 19 22:05:20 2010 +0300
tests: add an example for hiding an enum value
tests/gobject/src/gtypes.c | 1 +
tests/gobject/src/gtypes.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/gobject/src/gtypes.c b/tests/gobject/src/gtypes.c
index b8530c3..43f7403 100644
--- a/tests/gobject/src/gtypes.c
+++ b/tests/gobject/src/gtypes.c
@@ -20,6 +20,7 @@ GType gtkdoc_enum_get_type (void) {
static const GEnumValue values[] = {
{ GTKDOC_ENUM_V1, "GTKDOC_ENUM_V1", "first" },
{ GTKDOC_ENUM_V2, "GTKDOC_ENUM_V2", "second" },
+ { GTKDOC_ENUM_V3, "GTKDOC_ENUM_V3", "third" },
{ 0, NULL, NULL},
};
type = g_enum_register_static ("GtkdocEnum", values);
diff --git a/tests/gobject/src/gtypes.h b/tests/gobject/src/gtypes.h
index 40ed826..6e89381 100644
--- a/tests/gobject/src/gtypes.h
+++ b/tests/gobject/src/gtypes.h
@@ -18,7 +18,9 @@
*/
typedef enum {
GTKDOC_ENUM_V1=0,
- GTKDOC_ENUM_V2
+ GTKDOC_ENUM_V2,
+ /*< private >*/
+ GTKDOC_ENUM_V3
} GtkdocEnum;
GType gtkdoc_enum_get_type(void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]