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

« back to all changes in this revision

Viewing changes to doc/sgml/glade.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2002-03-30 22:55:37 UTC
  • Revision ID: james.westby@ubuntu.com-20020330225537-jx47zcil1ybgy9qx
Tags: upstream-1.99.10
ImportĀ upstreamĀ versionĀ 1.99.10

Show diffs side-by-side

added added

removed removed

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