mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
Add a hint about the requirement that enum and flags values must be
2006-10-08 Matthias Clasen <mclasen@redhat.com> * gobject/tmpl/enumerations_flags.sgml: Add a hint about the requirement that enum and flags values must be static.
This commit is contained in:
parent
891fcada5d
commit
6300eef350
@ -1,3 +1,8 @@
|
|||||||
|
2006-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gobject/tmpl/enumerations_flags.sgml: Add a hint about
|
||||||
|
the requirement that enum and flags values must be static.
|
||||||
|
|
||||||
2006-10-01 Matthias Clasen <mclasen@redhat.com>
|
2006-10-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/tmpl/option.sgml: Improve example. (#367625, Ross Burton)
|
* glib/tmpl/option.sgml: Improve example. (#367625, Ross Burton)
|
||||||
|
@ -232,12 +232,11 @@ than to write one yourself using g_enum_register_static().
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@name: A nul-terminated string used as the name of the new type.
|
@name: A nul-terminated string used as the name of the new type.
|
||||||
@_static_values:
|
|
||||||
@Returns: The new type identifier.
|
|
||||||
<!-- # Unused Parameters # -->
|
|
||||||
@const_static_values: An array of #GEnumValue structs for the possible
|
@const_static_values: An array of #GEnumValue structs for the possible
|
||||||
enumeration values. The array is terminated by a struct with all
|
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.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_flags_register_static ##### -->
|
<!-- ##### FUNCTION g_flags_register_static ##### -->
|
||||||
@ -251,12 +250,10 @@ than to write one yourself using g_flags_register_static().
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@name: A nul-terminated string used as the name of the new type.
|
@name: A nul-terminated string used as the name of the new type.
|
||||||
@_static_values:
|
|
||||||
@Returns: The new type identifier.
|
|
||||||
<!-- # Unused Parameters # -->
|
|
||||||
@const_static_values: An array of #GFlagsValue structs for the possible
|
@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.
|
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.
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_enum_complete_type_info ##### -->
|
<!-- ##### FUNCTION g_enum_complete_type_info ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user