diff options
Diffstat (limited to 'tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page')
-rw-r--r-- | tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page index 8bb5fcdc..055334f0 100644 --- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page +++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.page @@ -7,37 +7,42 @@ <info> <link type="guide" xref="index"/> </info> - <title>GIRepository.BaseInfo</title> -<p>GIBaseInfo is the common base struct of all other *Info structs -accessible through the <link xref="GIRepository">GIRepository</link> API. -All other structs can be casted to a <link xref="GIBaseInfo">GIBaseInfo</link>, for instance: -<example> -<title>Casting a <link xref="GIFunctionInfo">GIFunctionInfo</link> to <link xref="GIBaseInfo">GIBaseInfo</link></title> -<programlisting> + <title>GIRepositoryBaseInfo</title> + <p>GIBaseInfo is the common base struct of all other *Info structs +accessible through the #GIRepository API. +All other structs can be casted to a #GIBaseInfo, for instance: +<example> +<title>Casting a #GIFunctionInfo to #GIBaseInfo</title> +<programlisting> GIFunctionInfo *function_info = ...; GIBaseInfo *info = (GIBaseInfo*)function_info; -</programlisting> -</example> -Most <link xref="GIRepository">GIRepository</link> APIs returning a <link xref="GIBaseInfo">GIBaseInfo</link> is actually creating a new struct, in other +</programlisting> +</example> +Most #GIRepository APIs returning a #GIBaseInfo is actually creating a new struct, in other words, g_base_info_unref() has to be called when done accessing the data. GIBaseInfos are normally accessed by calling either -g_irepository_find_by_name(), g_irepository_find_by_gtype() or g_irepository_get_info().</p><p><example> -<title>Getting the Button of the Gtk typelib</title> -<programlisting> +g_irepository_find_by_name(), g_irepository_find_by_gtype() or g_irepository_get_info(). + +<example> +<title>Getting the Button of the Gtk typelib</title> +<programlisting> GIBaseInfo *button_info = g_irepository_find_by_name(NULL, "Gtk", "Button"); ... use button_info ... g_base_info_unref(button_info); -</programlisting> -</example></p><p><refsect1 id="gi-gibaseinfo.struct-hierarchy" role="struct_hierarchy"> -<title role="struct_hierarchy.title">Struct hierarchy</title> -<synopsis> +</programlisting> +</example> + +<refsect1 id="gi-gibaseinfo.struct-hierarchy" role="struct_hierarchy"> +<title role="struct_hierarchy.title">Struct hierarchy</title> +<synopsis> GIBaseInfo -+----<link linkend="gi-GIArgInfo">GIArgInfo</link> -+----<link linkend="gi-GICallableInfo">GICallableInfo</link> -+----<link linkend="gi-GIConstantInfo">GIConstantInfo</link> -+----<link linkend="gi-GIFieldInfo">GIFieldInfo</link> -+----<link linkend="gi-GIPropertyInfo">GIPropertyInfo</link> -+----<link linkend="gi-GIRegisteredTypeInfo">GIRegisteredTypeInfo</link> -+----<link linkend="gi-GITypeInfo">GITypeInfo</link> -</synopsis> -</refsect1></p></page> ++----<link linkend="gi-GIArgInfo">GIArgInfo</link> ++----<link linkend="gi-GICallableInfo">GICallableInfo</link> ++----<link linkend="gi-GIConstantInfo">GIConstantInfo</link> ++----<link linkend="gi-GIFieldInfo">GIFieldInfo</link> ++----<link linkend="gi-GIPropertyInfo">GIPropertyInfo</link> ++----<link linkend="gi-GIRegisteredTypeInfo">GIRegisteredTypeInfo</link> ++----<link linkend="gi-GITypeInfo">GITypeInfo</link> +</synopsis> +</refsect1></p> +</page> |