mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +02:00
Add /*< public >*/ and /*< private >*/ markers for documentation purposes.
Sat Oct 18 01:30:47 2003 Matthias Clasen <maclas@gmx.de> * gtypeplugin.h (struct _GTypePluginClass): Add /*< public >*/ and /*< private >*/ markers for documentation purposes. * gobject/tmpl/gboxed.sgml: * gobject/tmpl/gtypeplugin.sgml: * gobject/tmpl/enumerations_flags.sgml: Additions.
This commit is contained in:
committed by
Matthias Clasen
parent
a414fb77de
commit
0cbbe0bcdf
@@ -63,18 +63,16 @@ provided to copy and free opaque boxed structures of this type.
|
||||
@boxed_copy: Boxed structure copy function.
|
||||
@boxed_free: Boxed structure free function.
|
||||
@Returns: New %G_TYPE_BOXED derived type id for @name.
|
||||
<!-- # Unused Parameters # -->
|
||||
@boxed_init:
|
||||
@is_refcounted:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_pointer_type_register_static ##### -->
|
||||
<para>
|
||||
|
||||
Creates a new %G_TYPE_POINTER derived type id for a new
|
||||
pointer type with name @name.
|
||||
</para>
|
||||
|
||||
@name:
|
||||
@Returns:
|
||||
@name: the name of the new pointer type.
|
||||
@Returns: a new %G_TYPE_POINTER derived type id for @name.
|
||||
|
||||
|
||||
<!-- ##### MACRO G_TYPE_GSTRING ##### -->
|
||||
@@ -84,3 +82,40 @@ The #GType for #GString.
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_TYPE_STRV ##### -->
|
||||
<para>
|
||||
The #GType for a boxed type holding a %NULL-terminated array of strings.
|
||||
</para>
|
||||
<para>
|
||||
The code fragments in the following example show the use of a property of
|
||||
type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
|
||||
and g_object_get().
|
||||
</para>
|
||||
<informalexample><programlisting>
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_AUTHORS,
|
||||
g_param_spec_boxed ("authors",
|
||||
_("Authors"),
|
||||
_("List of authors"),
|
||||
G_TYPE_STRV,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
|
||||
gchar *authors[] = { "Owen", "Tim", NULL };
|
||||
g_object_set (obj, "authors", authors, NULL);
|
||||
|
||||
|
||||
gchar *writers[];
|
||||
g_object_get (obj, "authors", &writers, NULL);
|
||||
/* do something with writers */
|
||||
g_strfreev (writers);
|
||||
</programlisting></informalexample>
|
||||
|
||||
|
||||
|
||||
<!-- ##### TYPEDEF GStrv ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user