From 6300eef35050c7731a21ecebdd280ecbbd5fd946 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 8 Oct 2006 19:35:52 +0000 Subject: [PATCH] Add a hint about the requirement that enum and flags values must be 2006-10-08 Matthias Clasen * gobject/tmpl/enumerations_flags.sgml: Add a hint about the requirement that enum and flags values must be static. --- docs/reference/ChangeLog | 5 +++++ docs/reference/gobject/tmpl/enumerations_flags.sgml | 13 +++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index e15440f62..9ed7634cd 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2006-10-08 Matthias Clasen + + * gobject/tmpl/enumerations_flags.sgml: Add a hint about + the requirement that enum and flags values must be static. + 2006-10-01 Matthias Clasen * glib/tmpl/option.sgml: Improve example. (#367625, Ross Burton) diff --git a/docs/reference/gobject/tmpl/enumerations_flags.sgml b/docs/reference/gobject/tmpl/enumerations_flags.sgml index b93528ea6..1a896f7e5 100644 --- a/docs/reference/gobject/tmpl/enumerations_flags.sgml +++ b/docs/reference/gobject/tmpl/enumerations_flags.sgml @@ -232,12 +232,11 @@ than to write one yourself using g_enum_register_static(). @name: A nul-terminated string used as the name of the new type. -@_static_values: -@Returns: The new type identifier. - @const_static_values: An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all - members being 0. + members being 0. GObject keeps a reference to the data, so it cannot + be stack-allocated. +@Returns: The new type identifier. @@ -251,12 +250,10 @@ than to write one yourself using g_flags_register_static(). @name: A nul-terminated string used as the name of the new type. -@_static_values: -@Returns: The new type identifier. - @const_static_values: An array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. - + GObject keeps a reference to the data, so it cannot be stack-allocated. +@Returns: The new type identifier.