~ubuntu-branches/ubuntu/precise/libglade2/precise-proposed

« back to all changes in this revision

Viewing changes to doc/xml/glade-init.xml

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Rottmann
  • Date: 2005-02-28 14:33:01 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050228143301-eroxclsw3tlhg20p
Tags: 1:2.4.2-2
Included manpage for libglade-convert (closes: #294254, thanks to
Margarita Manterola).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
 
3
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
 
4
<refentry id="libglade-Libglade-Initialisation">
 
5
<refmeta>
 
6
<refentrytitle>Libglade Initialisation</refentrytitle>
 
7
<manvolnum>3</manvolnum>
 
8
<refmiscinfo>LIBGLADE Library</refmiscinfo>
 
9
</refmeta>
 
10
 
 
11
<refnamediv>
 
12
<refname>Libglade Initialisation</refname><refpurpose>Routines used to initialise libglade.</refpurpose>
 
13
</refnamediv>
 
14
 
 
15
<refsynopsisdiv><title>Synopsis</title>
 
16
 
 
17
<synopsis>
 
18
 
 
19
#include &lt;glade/glade-init.h&gt;
 
20
 
 
21
 
 
22
<link linkend="void">void</link>        <link linkend="glade-init">glade_init</link>                      (void);
 
23
<link linkend="void">void</link>        <link linkend="glade-require">glade_require</link>                   (const <link linkend="gchar">gchar</link> *library);
 
24
<link linkend="void">void</link>        <link linkend="glade-provide">glade_provide</link>                   (const <link linkend="gchar">gchar</link> *library);
 
25
 
 
26
</synopsis>
 
27
</refsynopsisdiv>
 
28
 
 
29
 
 
30
 
 
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
 
37
<refsect1>
 
38
<title>Description</title>
 
39
<para>
 
40
These routines are used to initialise libglade, and to load addon modules
 
41
that recognise extra widget sets.  The <filename>glade_init</filename>
 
42
routine must be called before any libglade routines are used, and the
 
43
<filename>glade_load_module</filename> routine would be used to load
 
44
extra modules.
 
45
</para>
 
46
</refsect1>
 
47
 
 
48
<refsect1>
 
49
<title>Details</title>
 
50
<refsect2>
 
51
<title><anchor id="glade-init"/>glade_init ()</title>
 
52
<indexterm><primary>glade_init</primary></indexterm><programlisting><link linkend="void">void</link>        glade_init                      (void);</programlisting>
 
53
<para>
 
54
It used to be necessary to call <link linkend="glade-init"><function>glade_init()</function></link> before creating
 
55
GladeXML objects.  This is now no longer the case, as libglade will
 
56
be initialised on demand now.  Calling <link linkend="glade-init"><function>glade_init()</function></link> manually will
 
57
not cause any problems though.</para>
 
58
<para>
 
59
 
 
60
</para></refsect2>
 
61
<refsect2>
 
62
<title><anchor id="glade-require"/>glade_require ()</title>
 
63
<indexterm><primary>glade_require</primary></indexterm><programlisting><link linkend="void">void</link>        glade_require                   (const <link linkend="gchar">gchar</link> *library);</programlisting>
 
64
<para>
 
65
Ensure that a required library is available.  If it is not already
 
66
available, libglade will attempt to dynamically load a module that
 
67
contains the handlers for that library.</para>
 
68
<para>
 
69
 
 
70
</para><variablelist role="params">
 
71
<varlistentry><term><parameter>library</parameter>&nbsp;:</term>
 
72
<listitem><simpara> the required library
 
73
</simpara></listitem></varlistentry>
 
74
</variablelist></refsect2>
 
75
<refsect2>
 
76
<title><anchor id="glade-provide"/>glade_provide ()</title>
 
77
<indexterm><primary>glade_provide</primary></indexterm><programlisting><link linkend="void">void</link>        glade_provide                   (const <link linkend="gchar">gchar</link> *library);</programlisting>
 
78
<para>
 
79
This function should be called by a module to assert that it
 
80
provides wrappers for a particular library.  This should be called
 
81
by the <link linkend="register-widgets"><function>register_widgets()</function></link> function of a libglade module so that it
 
82
isn't loaded twice, for instance.</para>
 
83
<para>
 
84
 
 
85
</para><variablelist role="params">
 
86
<varlistentry><term><parameter>library</parameter>&nbsp;:</term>
 
87
<listitem><simpara> the provided library
 
88
</simpara></listitem></varlistentry>
 
89
</variablelist></refsect2>
 
90
 
 
91
</refsect1>
 
92
 
 
93
 
 
94
 
 
95
 
 
96
</refentry>