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

« back to all changes in this revision

Viewing changes to doc/html/GladeXML.html

  • 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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GladeXML</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="Libglade Reference Manual"><link rel="up" href="libglade-lib.html" title="Part�I.�Libglade Library Reference"><link rel="prev" href="libglade-Libglade-Initialisation.html" title="Libglade Initialisation"><link rel="next" href="libglade-Libglade-SAX-Parser.html" title="Libglade SAX Parser"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="libglade-notes.html" title="Libglade Programming Notes"><link rel="chapter" href="libglade-dtd.html" title="Glade 2.0 File Format"><link rel="part" href="libglade-lib.html" title="Part�I.�Libglade Library Reference"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libglade-Libglade-Initialisation.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libglade-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Libglade Reference Manual</th><td><a accesskey="n" href="libglade-Libglade-SAX-Parser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GladeXML"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GladeXML</span></h2><p>GladeXML &#8212; Allows dynamic loading of user interfaces from XML descriptions.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
 
2
 
 
3
#include &lt;glade/glade-xml.h&gt;
 
4
 
 
5
 
 
6
            <a href="GladeXML.html#GladeXML-struct">GladeXML</a>;
 
7
            <a href="GladeXML.html#GladeXMLClass">GladeXMLClass</a>;
 
8
<a href="GladeXML.html" title="GladeXML">GladeXML</a>*   <a href="GladeXML.html#glade-xml-new">glade_xml_new</a>                   (const char *fname,
 
9
                                             const char *root,
 
10
                                             const char *domain);
 
11
<a href="GladeXML.html" title="GladeXML">GladeXML</a>*   <a href="GladeXML.html#glade-xml-new-from-buffer">glade_xml_new_from_buffer</a>       (const char *buffer,
 
12
                                             int size,
 
13
                                             const char *root,
 
14
                                             const char *domain);
 
15
gboolean    <a href="GladeXML.html#glade-xml-construct">glade_xml_construct</a>             (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
16
                                             const char *fname,
 
17
                                             const char *root,
 
18
                                             const char *domain);
 
19
 
 
20
void        <a href="GladeXML.html#glade-xml-signal-connect">glade_xml_signal_connect</a>        (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
21
                                             const char *handlername,
 
22
                                             GCallback func);
 
23
void        <a href="GladeXML.html#glade-xml-signal-connect-data">glade_xml_signal_connect_data</a>   (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
24
                                             const char *handlername,
 
25
                                             GCallback func,
 
26
                                             gpointer user_data);
 
27
void        <a href="GladeXML.html#glade-xml-signal-autoconnect">glade_xml_signal_autoconnect</a>    (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self);
 
28
 
 
29
GtkWidget*  <a href="GladeXML.html#glade-xml-get-widget">glade_xml_get_widget</a>            (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
30
                                             const char *name);
 
31
GList*      <a href="GladeXML.html#glade-xml-get-widget-prefix">glade_xml_get_widget_prefix</a>     (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
32
                                             const char *name);
 
33
const char* <a href="GladeXML.html#glade-get-widget-name">glade_get_widget_name</a>           (GtkWidget *widget);
 
34
<a href="GladeXML.html" title="GladeXML">GladeXML</a>*   <a href="GladeXML.html#glade-get-widget-tree">glade_get_widget_tree</a>           (GtkWidget *widget);
 
35
 
 
36
void        (<a href="GladeXML.html#GladeXMLConnectFunc">*GladeXMLConnectFunc</a>)          (const gchar *handler_name,
 
37
                                             GObject *object,
 
38
                                             const gchar *signal_name,
 
39
                                             const gchar *signal_data,
 
40
                                             GObject *connect_object,
 
41
                                             gboolean after,
 
42
                                             gpointer user_data);
 
43
void        <a href="GladeXML.html#glade-xml-signal-connect-full">glade_xml_signal_connect_full</a>   (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
44
                                             const gchar *handler_name,
 
45
                                             <a href="GladeXML.html#GladeXMLConnectFunc">GladeXMLConnectFunc</a> func,
 
46
                                             gpointer user_data);
 
47
void        <a href="GladeXML.html#glade-xml-signal-autoconnect-full">glade_xml_signal_autoconnect_full</a>
 
48
                                            (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
49
                                             <a href="GladeXML.html#GladeXMLConnectFunc">GladeXMLConnectFunc</a> func,
 
50
                                             gpointer user_data);
 
51
GtkWidget*  (<a href="GladeXML.html#GladeXMLCustomWidgetHandler">*GladeXMLCustomWidgetHandler</a>)  (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *xml,
 
52
                                             gchar *func_name,
 
53
                                             gchar *name,
 
54
                                             gchar *string1,
 
55
                                             gchar *string2,
 
56
                                             gint int1,
 
57
                                             gint int2,
 
58
                                             gpointer user_data);
 
59
void        <a href="GladeXML.html#glade-set-custom-handler">glade_set_custom_handler</a>        (<a href="GladeXML.html#GladeXMLCustomWidgetHandler">GladeXMLCustomWidgetHandler</a> handler,
 
60
                                             gpointer user_data);
 
61
 
 
62
 
 
63
</pre></div><div class="refsect1" lang="en"><a name="id294156"></a><h2>Object Hierarchy</h2><pre class="synopsis">
 
64
 
 
65
  GObject
 
66
   +----GladeXML
 
67
</pre></div><div class="refsect1" lang="en"><a name="id294170"></a><h2>Description</h2><p>
 
68
This object represents an `instantiation' of an XML interface description.
 
69
When one of these objects is created, the XML file is read, and the
 
70
interface is created.  The GladeXML object then provides an interface for
 
71
accessing the widgets in the interface by the names assigned to them
 
72
inside the XML description.
 
73
</p><p>
 
74
The GladeXML object can also be used to connect handlers to the named
 
75
signals in the description.  Libglade also provides an interface by which
 
76
it can look up the signal handler names in the program's symbol table and
 
77
automatically connect as many handlers up as it can that way.
 
78
</p></div><div class="refsect1" lang="en"><a name="id294189"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id294194"></a><h3><a name="GladeXML-struct"></a>GladeXML</h3><a class="indexterm" name="id294202"></a><pre class="programlisting">typedef struct {
 
79
    GObject parent;
 
80
 
 
81
    char *filename;
 
82
} GladeXML;
 
83
</pre><p>
 
84
 
 
85
</p></div><hr><div class="refsect2" lang="en"><a name="id294213"></a><h3><a name="GladeXMLClass"></a>GladeXMLClass</h3><a class="indexterm" name="id294221"></a><pre class="programlisting">typedef struct {
 
86
    GObjectClass parent_class;
 
87
 
 
88
    /* Virtual function: gets the appropriate gtype for the typename.*/
 
89
    GType (* lookup_type) (GladeXML*self, const char *gtypename);
 
90
} GladeXMLClass;
 
91
</pre><p>
 
92
 
 
93
</p></div><hr><div class="refsect2" lang="en"><a name="id294232"></a><h3><a name="glade-xml-new"></a>glade_xml_new ()</h3><a class="indexterm" name="id294241"></a><pre class="programlisting"><a href="GladeXML.html" title="GladeXML">GladeXML</a>*   glade_xml_new                   (const char *fname,
 
94
                                             const char *root,
 
95
                                             const char *domain);</pre><p>
 
96
Creates a new GladeXML object (and the corresponding widgets) from the
 
97
XML file <i class="parameter"><tt>fname</tt></i>.  Optionally it will only build the interface from the
 
98
widget node <i class="parameter"><tt>root</tt></i> (if it is not <tt class="literal">NULL</tt>).  This feature is useful if you
 
99
only want to build say a toolbar or menu from the XML file, but not the
 
100
window it is embedded in.  Note also that the XML parse tree is cached
 
101
to speed up creating another GladeXML object for the same file</p><p>
 
102
 
 
103
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>fname</tt></i>�:</span></td><td> the XML file name.
 
104
</td></tr><tr><td><span class="term"><i class="parameter"><tt>root</tt></i>�:</span></td><td> the widget node in <i class="parameter"><tt>fname</tt></i> to start building from (or <tt class="literal">NULL</tt>)
 
105
</td></tr><tr><td><span class="term"><i class="parameter"><tt>domain</tt></i>�:</span></td><td> the translation domain for the XML file (or <tt class="literal">NULL</tt> for default)
 
106
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the newly created GladeXML object, or NULL on failure.
 
107
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id337839"></a><h3><a name="glade-xml-new-from-buffer"></a>glade_xml_new_from_buffer ()</h3><a class="indexterm" name="id337848"></a><pre class="programlisting"><a href="GladeXML.html" title="GladeXML">GladeXML</a>*   glade_xml_new_from_buffer       (const char *buffer,
 
108
                                             int size,
 
109
                                             const char *root,
 
110
                                             const char *domain);</pre><p>
 
111
Creates a new GladeXML object (and the corresponding widgets) from the
 
112
buffer <i class="parameter"><tt>buffer</tt></i>.  Optionally it will only build the interface from the
 
113
widget node <i class="parameter"><tt>root</tt></i> (if it is not <tt class="literal">NULL</tt>).  This feature is useful if you
 
114
only want to build say a toolbar or menu from the XML document, but not the
 
115
window it is embedded in.</p><p>
 
116
 
 
117
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>buffer</tt></i>�:</span></td><td> the memory buffer containing the XML document.
 
118
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i>�:</span></td><td> the size of the buffer.
 
119
</td></tr><tr><td><span class="term"><i class="parameter"><tt>root</tt></i>�:</span></td><td> the widget node in <i class="parameter"><tt>buffer</tt></i> to start building from (or <tt class="literal">NULL</tt>)
 
120
</td></tr><tr><td><span class="term"><i class="parameter"><tt>domain</tt></i>�:</span></td><td> the translation domain to use for this interface (or <tt class="literal">NULL</tt>)
 
121
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the newly created GladeXML object, or NULL on failure.
 
122
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id337965"></a><h3><a name="glade-xml-construct"></a>glade_xml_construct ()</h3><a class="indexterm" name="id337973"></a><pre class="programlisting">gboolean    glade_xml_construct             (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
123
                                             const char *fname,
 
124
                                             const char *root,
 
125
                                             const char *domain);</pre><p>
 
126
This routine can be used by bindings (such as gtk--) to help construct
 
127
a GladeXML object, if it is needed.</p><p>
 
128
 
 
129
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object
 
130
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fname</tt></i>�:</span></td><td> the XML filename
 
131
</td></tr><tr><td><span class="term"><i class="parameter"><tt>root</tt></i>�:</span></td><td> the root widget node (or <tt class="literal">NULL</tt> for none)
 
132
</td></tr><tr><td><span class="term"><i class="parameter"><tt>domain</tt></i>�:</span></td><td> the translation domain (or <tt class="literal">NULL</tt> for the default)
 
133
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> TRUE if the construction succeeded.
 
134
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338077"></a><h3><a name="glade-xml-signal-connect"></a>glade_xml_signal_connect ()</h3><a class="indexterm" name="id338085"></a><pre class="programlisting">void        glade_xml_signal_connect        (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
135
                                             const char *handlername,
 
136
                                             GCallback func);</pre><p>
 
137
In the glade interface descriptions, signal handlers are specified for
 
138
widgets by name.  This function allows you to connect a C function to
 
139
all signals in the GladeXML file with the given signal handler name.</p><p>
 
140
 
 
141
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object
 
142
</td></tr><tr><td><span class="term"><i class="parameter"><tt>handlername</tt></i>�:</span></td><td> the signal handler name
 
143
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i>�:</span></td><td> the signal handler function
 
144
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338157"></a><h3><a name="glade-xml-signal-connect-data"></a>glade_xml_signal_connect_data ()</h3><a class="indexterm" name="id338166"></a><pre class="programlisting">void        glade_xml_signal_connect_data   (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
145
                                             const char *handlername,
 
146
                                             GCallback func,
 
147
                                             gpointer user_data);</pre><p>
 
148
In the glade interface descriptions, signal handlers are specified for
 
149
widgets by name.  This function allows you to connect a C function to
 
150
all signals in the GladeXML file with the given signal handler name.
 
151
</p><p>
 
152
It differs from glade_xml_signal_connect since it allows you to
 
153
specify the data parameter for the signal handler.  It is also a small
 
154
demonstration of how to use glade_xml_signal_connect_full.</p><p>
 
155
 
 
156
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object
 
157
</td></tr><tr><td><span class="term"><i class="parameter"><tt>handlername</tt></i>�:</span></td><td> the signal handler name
 
158
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i>�:</span></td><td> the signal handler function
 
159
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> the signal handler data
 
160
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338258"></a><h3><a name="glade-xml-signal-autoconnect"></a>glade_xml_signal_autoconnect ()</h3><a class="indexterm" name="id338267"></a><pre class="programlisting">void        glade_xml_signal_autoconnect    (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self);</pre><p>
 
161
This function is a variation of glade_xml_signal_connect.  It uses
 
162
gmodule's introspective features (by openning the module <tt class="literal">NULL</tt>) to
 
163
look at the application's symbol table.  From here it tries to match
 
164
the signal handler names given in the interface description with
 
165
symbols in the application and connects the signals.
 
166
</p><p>
 
167
Note that this function will not work correctly if gmodule is not
 
168
supported on the platform.</p><p>
 
169
 
 
170
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object.
 
171
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338314"></a><h3><a name="glade-xml-get-widget"></a>glade_xml_get_widget ()</h3><a class="indexterm" name="id338322"></a><pre class="programlisting">GtkWidget*  glade_xml_get_widget            (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
172
                                             const char *name);</pre><p>
 
173
This function is used to get a pointer to the GtkWidget corresponding to
 
174
<i class="parameter"><tt>name</tt></i> in the interface description.  You would use this if you have to do
 
175
anything to the widget after loading.</p><p>
 
176
 
 
177
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object.
 
178
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i>�:</span></td><td> the name of the widget.
 
179
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the widget matching <i class="parameter"><tt>name</tt></i>, or <tt class="literal">NULL</tt> if none exists.
 
180
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338397"></a><h3><a name="glade-xml-get-widget-prefix"></a>glade_xml_get_widget_prefix ()</h3><a class="indexterm" name="id338405"></a><pre class="programlisting">GList*      glade_xml_get_widget_prefix     (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
181
                                             const char *name);</pre><p>
 
182
This function is used to get a list of pointers to the GtkWidget(s)
 
183
with names that start with the string <i class="parameter"><tt>name</tt></i> in the interface description.
 
184
You would use this if you have to do something  to all of these widgets
 
185
after loading.</p><p>
 
186
 
 
187
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object.
 
188
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i>�:</span></td><td> the name of the widget.
 
189
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> A list of the widget that match <i class="parameter"><tt>name</tt></i> as the start of their
 
190
name, or <tt class="literal">NULL</tt> if none exists.
 
191
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338481"></a><h3><a name="glade-get-widget-name"></a>glade_get_widget_name ()</h3><a class="indexterm" name="id338490"></a><pre class="programlisting">const char* glade_get_widget_name           (GtkWidget *widget);</pre><p>
 
192
Used to get the name of a widget that was generated by a GladeXML object.</p><p>
 
193
 
 
194
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>�:</span></td><td> the widget
 
195
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the name of the widget.
 
196
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338539"></a><h3><a name="glade-get-widget-tree"></a>glade_get_widget_tree ()</h3><a class="indexterm" name="id338548"></a><pre class="programlisting"><a href="GladeXML.html" title="GladeXML">GladeXML</a>*   glade_get_widget_tree           (GtkWidget *widget);</pre><p>
 
197
This function is used to get the GladeXML object that built this widget.</p><p>
 
198
 
 
199
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>�:</span></td><td> the widget
 
200
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the GladeXML object that built this widget.
 
201
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338596"></a><h3><a name="GladeXMLConnectFunc"></a>GladeXMLConnectFunc ()</h3><a class="indexterm" name="id338604"></a><pre class="programlisting">void        (*GladeXMLConnectFunc)          (const gchar *handler_name,
 
202
                                             GObject *object,
 
203
                                             const gchar *signal_name,
 
204
                                             const gchar *signal_data,
 
205
                                             GObject *connect_object,
 
206
                                             gboolean after,
 
207
                                             gpointer user_data);</pre><p>
 
208
This is the signature of a function used to connect signals.  It is used
 
209
by the glade_xml_signal_connect_full and glade_xml_signal_autoconnect_full
 
210
functions.  It is mainly intented for interpreted language bindings, but
 
211
could be useful where the programmer wants more control over the signal
 
212
connection process.</p><p>
 
213
 
 
214
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler_name</tt></i>�:</span></td><td> the name of the handler function to connect.
 
215
</td></tr><tr><td><span class="term"><i class="parameter"><tt>object</tt></i>�:</span></td><td> the object to connect the signal to.
 
216
</td></tr><tr><td><span class="term"><i class="parameter"><tt>signal_name</tt></i>�:</span></td><td> the name of the signal.
 
217
</td></tr><tr><td><span class="term"><i class="parameter"><tt>signal_data</tt></i>�:</span></td><td> the string value of the signal data given in the XML file.
 
218
</td></tr><tr><td><span class="term"><i class="parameter"><tt>connect_object</tt></i>�:</span></td><td> non NULL if g_signal_connect_object should be used.
 
219
</td></tr><tr><td><span class="term"><i class="parameter"><tt>after</tt></i>�:</span></td><td> TRUE if the connection should be made with g_signal_connect_after.
 
220
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> the user data argument.
 
221
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id311878"></a><h3><a name="glade-xml-signal-connect-full"></a>glade_xml_signal_connect_full ()</h3><a class="indexterm" name="id299177"></a><pre class="programlisting">void        glade_xml_signal_connect_full   (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
222
                                             const gchar *handler_name,
 
223
                                             <a href="GladeXML.html#GladeXMLConnectFunc">GladeXMLConnectFunc</a> func,
 
224
                                             gpointer user_data);</pre><p>
 
225
This function is similar to glade_xml_signal_connect, except that it
 
226
allows you to give an arbitrary function that will be used for actually
 
227
connecting the signals.  This is mainly useful for writers of interpreted
 
228
language bindings, or applications where you need more control over the
 
229
signal connection process.</p><p>
 
230
 
 
231
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object.
 
232
</td></tr><tr><td><span class="term"><i class="parameter"><tt>handler_name</tt></i>�:</span></td><td> the name of the signal handler that we want to connect.
 
233
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i>�:</span></td><td> the function to use to connect the signals.
 
234
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> arbitrary data to pass to the connect function.
 
235
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338787"></a><h3><a name="glade-xml-signal-autoconnect-full"></a>glade_xml_signal_autoconnect_full ()</h3><a class="indexterm" name="id338795"></a><pre class="programlisting">void        glade_xml_signal_autoconnect_full
 
236
                                            (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *self,
 
237
                                             <a href="GladeXML.html#GladeXMLConnectFunc">GladeXMLConnectFunc</a> func,
 
238
                                             gpointer user_data);</pre><p>
 
239
This function is similar to glade_xml_signal_connect_full, except that it
 
240
will try to connect all signals in the interface, not just a single
 
241
named handler.  It can be thought of the interpeted language binding
 
242
version of glade_xml_signal_autoconnect, except that it does not
 
243
require gmodule to function correctly.</p><p>
 
244
 
 
245
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>self</tt></i>�:</span></td><td> the GladeXML object.
 
246
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i>�:</span></td><td> the function used to connect the signals.
 
247
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> arbitrary data that will be passed to the connection function.
 
248
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id338867"></a><h3><a name="GladeXMLCustomWidgetHandler"></a>GladeXMLCustomWidgetHandler ()</h3><a class="indexterm" name="id338875"></a><pre class="programlisting">GtkWidget*  (*GladeXMLCustomWidgetHandler)  (<a href="GladeXML.html" title="GladeXML">GladeXML</a> *xml,
 
249
                                             gchar *func_name,
 
250
                                             gchar *name,
 
251
                                             gchar *string1,
 
252
                                             gchar *string2,
 
253
                                             gint int1,
 
254
                                             gint int2,
 
255
                                             gpointer user_data);</pre><p>
 
256
This prototype is for a function that creates custom widgets.</p><p>
 
257
 
 
258
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>xml</tt></i>�:</span></td><td> the GladeXML object.
 
259
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func_name</tt></i>�:</span></td><td> the function name.
 
260
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i>�:</span></td><td> the name of the widget to be created.
 
261
</td></tr><tr><td><span class="term"><i class="parameter"><tt>string1</tt></i>�:</span></td><td> the string1 property.
 
262
</td></tr><tr><td><span class="term"><i class="parameter"><tt>string2</tt></i>�:</span></td><td> the string2 property.
 
263
</td></tr><tr><td><span class="term"><i class="parameter"><tt>int1</tt></i>�:</span></td><td> the int1 property.
 
264
</td></tr><tr><td><span class="term"><i class="parameter"><tt>int2</tt></i>�:</span></td><td> the int2 property.
 
265
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> the data passed to <a href="GladeXML.html#glade-set-custom-handler"><tt class="function">glade_set_custom_handler()</tt></a>
 
266
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>�:</span></td><td> the GtkWidget.
 
267
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id339039"></a><h3><a name="glade-set-custom-handler"></a>glade_set_custom_handler ()</h3><a class="indexterm" name="id339047"></a><pre class="programlisting">void        glade_set_custom_handler        (<a href="GladeXML.html#GladeXMLCustomWidgetHandler">GladeXMLCustomWidgetHandler</a> handler,
 
268
                                             gpointer user_data);</pre><p>
 
269
Calling this function allows you to override the default behaviour
 
270
when a Custom widget is found in an interface.  This could be used by
 
271
a language binding to call some other function, or to limit what
 
272
functions can be called to create custom widgets.</p><p>
 
273
 
 
274
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i>�:</span></td><td> the custom widget handler
 
275
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>�:</span></td><td> user data passed to the custom handler
 
276
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libglade-Libglade-Initialisation.html"><b>&lt;&lt;�Libglade Initialisation</b></a></td><td align="right"><a accesskey="n" href="libglade-Libglade-SAX-Parser.html"><b>Libglade SAX Parser�&gt;&gt;</b></a></td></tr></table></body></html>