~ubuntu-branches/ubuntu/quantal/glade-3/quantal

« back to all changes in this revision

Viewing changes to doc/html/GladeCommand.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell, Mathieu Trudel-Lapierre, Robert Ancell
  • Date: 2010-12-01 08:44:38 UTC
  • mfrom: (1.2.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20101201084438-sgfezb0e0r7p601j
Tags: 3.7.1-0ubuntu1
[ Mathieu Trudel-Lapierre ]
* New upstream release 3.7.1.
  - Now builds with gcc-4.5. (LP: #677374)
* debian/patches/02_spinbutton-adjustment.patch: dropped, applied upstream.
* debian/patches/03_fix-vbox-orientation.patch: dropped, applied upstream.
* debian/patches/04_do_not_escape_utf8.patch: dropped, applied upstream.
* debian/control.in: Bump libgtk2.0-dev (Build-)Depends to 2.20.0.
* debian/control.in: libgladeui-1-9 becomes libgladeui-1-10 due to SONAME
  change.
* debian/libgladeui-1-10.install: renamed from libgladeui-1-9.install.
* debian/rules: update DH_MAKESHLIBS for libgladeui soname change.
* debian/patches/90_linking_doc_in_natty.patch: fix linking for doc scanner
  on Natty.
* debian/control: re-applying debian/control.in changes in debian/control.

[ Robert Ancell ]
* debian/control:
  - Use standards-version 3.9.1
  - Fix aditional -> additional spelling mistake
  - Use tighter dependency on libgladeui-1-10 for libgladeui-1-dev
* debian/source:
  - Use source version 3.0
* debian/rules:
  - Drop simple-patchsys.mk, not required in soruce version 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<title>GladeCommand</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
 
<link rel="start" href="index.html" title="Glade User Interface Designer Reference Manual">
8
 
<link rel="up" href="core.html" title="Part II. Glade Core">
9
 
<link rel="prev" href="GladeWidgetAction.html" title="GladeWidgetAction">
10
 
<link rel="next" href="GladeClipboard.html" title="GladeClipboard">
11
 
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
12
 
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="catalog.html" title="Part I. Adding your custom widgets">
14
 
<link rel="part" href="core.html" title="Part II. Glade Core">
15
 
<link rel="part" href="dockables.html" title="Part III. Dockable Glade UI Widgets">
16
 
<link rel="part" href="misc.html" title="Part IV. Miscellaneous utilities">
17
 
<link rel="index" href="ix01.html" title="Index">
18
 
</head>
19
 
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
21
 
<tr valign="middle">
22
 
<td><a accesskey="p" href="GladeWidgetAction.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
 
<td><a accesskey="u" href="core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
24
 
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
25
 
<th width="100%" align="center">Glade User Interface Designer Reference Manual</th>
26
 
<td><a accesskey="n" href="GladeClipboard.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
27
 
</tr>
28
 
<tr><td colspan="5" class="shortcuts">
29
 
<a href="#GladeCommand.synopsis" class="shortcut">Top</a>
30
 
                   | 
31
 
                  <a href="#GladeCommand.description" class="shortcut">Description</a>
32
 
                   | 
33
 
                  <a href="#GladeCommand.object-hierarchy" class="shortcut">Object Hierarchy</a>
34
 
</td></tr>
35
 
</table>
36
 
<div class="refentry" lang="en">
37
 
<a name="GladeCommand"></a><div class="titlepage"></div>
38
 
<div class="refnamediv"><table width="100%"><tr>
39
 
<td valign="top">
40
 
<h2><span class="refentrytitle"><a name="GladeCommand.top_of_page"></a>GladeCommand</span></h2>
41
 
<p>GladeCommand — An event filter to implement the Undo/Redo stack.</p>
42
 
</td>
43
 
<td valign="top" align="right"></td>
44
 
</tr></table></div>
45
 
<div class="refsynopsisdiv">
46
 
<a name="GladeCommand.synopsis"></a><h2>Synopsis</h2>
47
 
<pre class="synopsis">
48
 
                    <a class="link" href="GladeCommand.html#GCSetPropData" title="GCSetPropData">GCSetPropData</a>;
49
 
                    <a class="link" href="GladeCommand.html#GladeCommand-struct" title="GladeCommand">GladeCommand</a>;
50
 
void                <a class="link" href="GladeCommand.html#glade-command-push-group" title="glade_command_push_group ()">glade_command_push_group</a>            (const gchar *fmt,
51
 
                                                         ...);
52
 
void                <a class="link" href="GladeCommand.html#glade-command-pop-group" title="glade_command_pop_group ()">glade_command_pop_group</a>             (void);
53
 
gboolean            <a class="link" href="GladeCommand.html#glade-command-execute" title="glade_command_execute ()">glade_command_execute</a>               (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command);
54
 
gboolean            <a class="link" href="GladeCommand.html#glade-command-undo" title="glade_command_undo ()">glade_command_undo</a>                  (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command);
55
 
gboolean            <a class="link" href="GladeCommand.html#glade-command-unifies" title="glade_command_unifies ()">glade_command_unifies</a>               (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command,
56
 
                                                         <a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *other);
57
 
void                <a class="link" href="GladeCommand.html#glade-command-collapse" title="glade_command_collapse ()">glade_command_collapse</a>              (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command,
58
 
                                                         <a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *other);
59
 
void                <a class="link" href="GladeCommand.html#glade-command-set-property" title="glade_command_set_property ()">glade_command_set_property</a>          (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
60
 
                                                         ...);
61
 
void                <a class="link" href="GladeCommand.html#glade-command-set-property-value" title="glade_command_set_property_value ()">glade_command_set_property_value</a>    (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
62
 
                                                         const GValue *value);
63
 
void                <a class="link" href="GladeCommand.html#glade-command-set-properties" title="glade_command_set_properties ()">glade_command_set_properties</a>        (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
64
 
                                                         const GValue *old_value,
65
 
                                                         const GValue *new_value,
66
 
                                                         ...);
67
 
void                <a class="link" href="GladeCommand.html#glade-command-set-properties-list" title="glade_command_set_properties_list ()">glade_command_set_properties_list</a>   (<a class="link" href="GladeProject.html" title="GladeProject">GladeProject</a> *project,
68
 
                                                         GList *props);
69
 
void                <a class="link" href="GladeCommand.html#glade-command-set-name" title="glade_command_set_name ()">glade_command_set_name</a>              (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
70
 
                                                         const gchar *name);
71
 
void                <a class="link" href="GladeCommand.html#glade-command-delete" title="glade_command_delete ()">glade_command_delete</a>                (GList *widgets);
72
 
<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *       <a class="link" href="GladeCommand.html#glade-command-create" title="glade_command_create ()">glade_command_create</a>                (<a class="link" href="gladeui-GladeWidgetAdaptor.html#GladeWidgetAdaptor" title="GladeWidgetAdaptor">GladeWidgetAdaptor</a> *adaptor,
73
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
74
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder,
75
 
                                                         <a class="link" href="GladeProject.html" title="GladeProject">GladeProject</a> *project);
76
 
void                <a class="link" href="GladeCommand.html#glade-command-cut" title="glade_command_cut ()">glade_command_cut</a>                   (GList *widgets);
77
 
void                <a class="link" href="GladeCommand.html#glade-command-copy" title="glade_command_copy ()">glade_command_copy</a>                  (GList *widgets);
78
 
void                <a class="link" href="GladeCommand.html#glade-command-paste" title="glade_command_paste ()">glade_command_paste</a>                 (GList *widgets,
79
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
80
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder);
81
 
void                <a class="link" href="GladeCommand.html#glade-command-dnd" title="glade_command_dnd ()">glade_command_dnd</a>                   (GList *widgets,
82
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
83
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder);
84
 
void                <a class="link" href="GladeCommand.html#glade-command-add-signal" title="glade_command_add_signal ()">glade_command_add_signal</a>            (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
85
 
                                                         const GladeSignal *signal);
86
 
void                <a class="link" href="GladeCommand.html#glade-command-remove-signal" title="glade_command_remove_signal ()">glade_command_remove_signal</a>         (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
87
 
                                                         const GladeSignal *signal);
88
 
void                <a class="link" href="GladeCommand.html#glade-command-change-signal" title="glade_command_change_signal ()">glade_command_change_signal</a>         (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
89
 
                                                         const GladeSignal *old_signal,
90
 
                                                         const GladeSignal *new_signal);
91
 
void                <a class="link" href="GladeCommand.html#glade-command-set-i18n" title="glade_command_set_i18n ()">glade_command_set_i18n</a>              (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
92
 
                                                         gboolean translatable,
93
 
                                                         gboolean has_context,
94
 
                                                         const gchar *context,
95
 
                                                         const gchar *comment);
96
 
</pre>
97
 
</div>
98
 
<div class="refsect1" lang="en">
99
 
<a name="GladeCommand.object-hierarchy"></a><h2>Object Hierarchy</h2>
100
 
<pre class="synopsis">
101
 
  GObject
102
 
   +----GladeCommand
103
 
</pre>
104
 
</div>
105
 
<div class="refsect1" lang="en">
106
 
<a name="GladeCommand.description"></a><h2>Description</h2>
107
 
<p>
108
 
The Glade Command api allows us to view user actions as items and execute 
109
 
and undo those items; each <a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> has its own Undo/Redo stack.</p>
110
 
</div>
111
 
<div class="refsect1" lang="en">
112
 
<a name="GladeCommand.details"></a><h2>Details</h2>
113
 
<div class="refsect2" lang="en">
114
 
<a name="GCSetPropData"></a><h3>GCSetPropData</h3>
115
 
<pre class="programlisting">typedef struct {
116
 
        GladeProperty *property;
117
 
        GValue        *new_value;
118
 
        GValue        *old_value;
119
 
} GCSetPropData;
120
 
</pre>
121
 
<p>
122
 
<span class="type">GladeProperties</span> can be set in a list as one command,
123
 
for Undo purposes; we store the list of <a class="link" href="GladeCommand.html#GCSetPropData" title="GCSetPropData"><span class="type">GCSetPropData</span></a> with
124
 
their old and new <span class="type">GValue</span>.</p>
125
 
<div class="variablelist"><table border="0">
126
 
<col align="left" valign="top">
127
 
<tbody>
128
 
<tr>
129
 
<td><p><span class="term"><a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *<em class="structfield"><code>property</code></em>;</span></p></td>
130
 
<td> A <a class="link" href="gladeui-glade-property.html#GladeProperty"><span class="type">GladeProperty</span></a> to set
131
 
</td>
132
 
</tr>
133
 
<tr>
134
 
<td><p><span class="term">GValue *<em class="structfield"><code>new_value</code></em>;</span></p></td>
135
 
<td> The new <span class="type">GValue</span> to assign to <em class="parameter"><code>property</code></em>
136
 
</td>
137
 
</tr>
138
 
<tr>
139
 
<td><p><span class="term">GValue *<em class="structfield"><code>old_value</code></em>;</span></p></td>
140
 
<td> The old <span class="type">GValue</span> of <em class="parameter"><code>property</code></em>
141
 
</td>
142
 
</tr>
143
 
</tbody>
144
 
</table></div>
145
 
</div>
146
 
<hr>
147
 
<div class="refsect2" lang="en">
148
 
<a name="GladeCommand-struct"></a><h3>GladeCommand</h3>
149
 
<pre class="programlisting">typedef struct _GladeCommand GladeCommand;</pre>
150
 
</div>
151
 
<hr>
152
 
<div class="refsect2" lang="en">
153
 
<a name="glade-command-push-group"></a><h3>glade_command_push_group ()</h3>
154
 
<pre class="programlisting">void                glade_command_push_group            (const gchar *fmt,
155
 
                                                         ...);</pre>
156
 
<p>
157
 
Marks the begining of a group.</p>
158
 
<div class="variablelist"><table border="0">
159
 
<col align="left" valign="top">
160
 
<tbody>
161
 
<tr>
162
 
<td><p><span class="term"><em class="parameter"><code>fmt</code></em> :</span></p></td>
163
 
<td>         The collective desctiption of the command group.
164
 
              only the description of the first group on the 
165
 
              stack is used when embedding groups.
166
 
</td>
167
 
</tr>
168
 
<tr>
169
 
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
170
 
<td> args to the format string.
171
 
</td>
172
 
</tr>
173
 
</tbody>
174
 
</table></div>
175
 
</div>
176
 
<hr>
177
 
<div class="refsect2" lang="en">
178
 
<a name="glade-command-pop-group"></a><h3>glade_command_pop_group ()</h3>
179
 
<pre class="programlisting">void                glade_command_pop_group             (void);</pre>
180
 
<p>
181
 
Mark the end of a command group.</p>
182
 
</div>
183
 
<hr>
184
 
<div class="refsect2" lang="en">
185
 
<a name="glade-command-execute"></a><h3>glade_command_execute ()</h3>
186
 
<pre class="programlisting">gboolean            glade_command_execute               (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command);</pre>
187
 
<p>
188
 
Executes <em class="parameter"><code>command</code></em></p>
189
 
<div class="variablelist"><table border="0">
190
 
<col align="left" valign="top">
191
 
<tbody>
192
 
<tr>
193
 
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
194
 
<td> A <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
195
 
</td>
196
 
</tr>
197
 
<tr>
198
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
199
 
<td> whether the command was successfully executed
200
 
</td>
201
 
</tr>
202
 
</tbody>
203
 
</table></div>
204
 
</div>
205
 
<hr>
206
 
<div class="refsect2" lang="en">
207
 
<a name="glade-command-undo"></a><h3>glade_command_undo ()</h3>
208
 
<pre class="programlisting">gboolean            glade_command_undo                  (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command);</pre>
209
 
<p>
210
 
Undo the effects of <em class="parameter"><code>command</code></em></p>
211
 
<div class="variablelist"><table border="0">
212
 
<col align="left" valign="top">
213
 
<tbody>
214
 
<tr>
215
 
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
216
 
<td> A <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
217
 
</td>
218
 
</tr>
219
 
<tr>
220
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
221
 
<td> whether the command was successfully reversed
222
 
</td>
223
 
</tr>
224
 
</tbody>
225
 
</table></div>
226
 
</div>
227
 
<hr>
228
 
<div class="refsect2" lang="en">
229
 
<a name="glade-command-unifies"></a><h3>glade_command_unifies ()</h3>
230
 
<pre class="programlisting">gboolean            glade_command_unifies               (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command,
231
 
                                                         <a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *other);</pre>
232
 
<p>
233
 
Checks whether <em class="parameter"><code>command</code></em> and <em class="parameter"><code>other</code></em> can be unified
234
 
to make one single command.</p>
235
 
<div class="variablelist"><table border="0">
236
 
<col align="left" valign="top">
237
 
<tbody>
238
 
<tr>
239
 
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
240
 
<td> A <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
241
 
</td>
242
 
</tr>
243
 
<tr>
244
 
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
245
 
<td> another <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
246
 
</td>
247
 
</tr>
248
 
<tr>
249
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
250
 
<td> whether they can be unified.
251
 
</td>
252
 
</tr>
253
 
</tbody>
254
 
</table></div>
255
 
</div>
256
 
<hr>
257
 
<div class="refsect2" lang="en">
258
 
<a name="glade-command-collapse"></a><h3>glade_command_collapse ()</h3>
259
 
<pre class="programlisting">void                glade_command_collapse              (<a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *command,
260
 
                                                         <a class="link" href="GladeCommand.html" title="GladeCommand">GladeCommand</a> *other);</pre>
261
 
<p>
262
 
Merges <em class="parameter"><code>other</code></em> into <em class="parameter"><code>command</code></em>, so that <em class="parameter"><code>command</code></em> now
263
 
covers both commands and <em class="parameter"><code>other</code></em> can be dispensed with.</p>
264
 
<div class="variablelist"><table border="0">
265
 
<col align="left" valign="top">
266
 
<tbody>
267
 
<tr>
268
 
<td><p><span class="term"><em class="parameter"><code>command</code></em> :</span></p></td>
269
 
<td> A <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
270
 
</td>
271
 
</tr>
272
 
<tr>
273
 
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
274
 
<td> another <a class="link" href="GladeCommand.html" title="GladeCommand"><span class="type">GladeCommand</span></a>
275
 
</td>
276
 
</tr>
277
 
</tbody>
278
 
</table></div>
279
 
</div>
280
 
<hr>
281
 
<div class="refsect2" lang="en">
282
 
<a name="glade-command-set-property"></a><h3>glade_command_set_property ()</h3>
283
 
<pre class="programlisting">void                glade_command_set_property          (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
284
 
                                                         ...);</pre>
285
 
</div>
286
 
<hr>
287
 
<div class="refsect2" lang="en">
288
 
<a name="glade-command-set-property-value"></a><h3>glade_command_set_property_value ()</h3>
289
 
<pre class="programlisting">void                glade_command_set_property_value    (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
290
 
                                                         const GValue *value);</pre>
291
 
</div>
292
 
<hr>
293
 
<div class="refsect2" lang="en">
294
 
<a name="glade-command-set-properties"></a><h3>glade_command_set_properties ()</h3>
295
 
<pre class="programlisting">void                glade_command_set_properties        (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
296
 
                                                         const GValue *old_value,
297
 
                                                         const GValue *new_value,
298
 
                                                         ...);</pre>
299
 
</div>
300
 
<hr>
301
 
<div class="refsect2" lang="en">
302
 
<a name="glade-command-set-properties-list"></a><h3>glade_command_set_properties_list ()</h3>
303
 
<pre class="programlisting">void                glade_command_set_properties_list   (<a class="link" href="GladeProject.html" title="GladeProject">GladeProject</a> *project,
304
 
                                                         GList *props);</pre>
305
 
</div>
306
 
<hr>
307
 
<div class="refsect2" lang="en">
308
 
<a name="glade-command-set-name"></a><h3>glade_command_set_name ()</h3>
309
 
<pre class="programlisting">void                glade_command_set_name              (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
310
 
                                                         const gchar *name);</pre>
311
 
</div>
312
 
<hr>
313
 
<div class="refsect2" lang="en">
314
 
<a name="glade-command-delete"></a><h3>glade_command_delete ()</h3>
315
 
<pre class="programlisting">void                glade_command_delete                (GList *widgets);</pre>
316
 
<p>
317
 
Performs a delete command on the list of widgets.</p>
318
 
<div class="variablelist"><table border="0">
319
 
<col align="left" valign="top">
320
 
<tbody><tr>
321
 
<td><p><span class="term"><em class="parameter"><code>widgets</code></em> :</span></p></td>
322
 
<td> a <span class="type">GList</span> of <span class="type">GladeWidgets</span>
323
 
</td>
324
 
</tr></tbody>
325
 
</table></div>
326
 
</div>
327
 
<hr>
328
 
<div class="refsect2" lang="en">
329
 
<a name="glade-command-create"></a><h3>glade_command_create ()</h3>
330
 
<pre class="programlisting"><a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *       glade_command_create                (<a class="link" href="gladeui-GladeWidgetAdaptor.html#GladeWidgetAdaptor" title="GladeWidgetAdaptor">GladeWidgetAdaptor</a> *adaptor,
331
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
332
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder,
333
 
                                                         <a class="link" href="GladeProject.html" title="GladeProject">GladeProject</a> *project);</pre>
334
 
<p>
335
 
Creates a new widget using <em class="parameter"><code>adaptor</code></em> and put in place of the <em class="parameter"><code>placeholder</code></em>
336
 
in the <em class="parameter"><code>project</code></em></p>
337
 
<div class="variablelist"><table border="0">
338
 
<col align="left" valign="top">
339
 
<tbody>
340
 
<tr>
341
 
<td><p><span class="term"><em class="parameter"><code>adaptor</code></em> :</span></p></td>
342
 
<td>            A <a class="link" href="gladeui-GladeWidgetAdaptor.html#GladeWidgetAdaptor" title="GladeWidgetAdaptor"><span class="type">GladeWidgetAdaptor</span></a>
343
 
</td>
344
 
</tr>
345
 
<tr>
346
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
347
 
<td>             the parent <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a> to add the new widget to.
348
 
</td>
349
 
</tr>
350
 
<tr>
351
 
<td><p><span class="term"><em class="parameter"><code>placeholder</code></em> :</span></p></td>
352
 
<td>    the placeholder which will be substituted by the widget
353
 
</td>
354
 
</tr>
355
 
<tr>
356
 
<td><p><span class="term"><em class="parameter"><code>project</code></em> :</span></p></td>
357
 
<td>            the project his widget belongs to.
358
 
</td>
359
 
</tr>
360
 
<tr>
361
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
362
 
<td> the newly created widget.
363
 
</td>
364
 
</tr>
365
 
</tbody>
366
 
</table></div>
367
 
</div>
368
 
<hr>
369
 
<div class="refsect2" lang="en">
370
 
<a name="glade-command-cut"></a><h3>glade_command_cut ()</h3>
371
 
<pre class="programlisting">void                glade_command_cut                   (GList *widgets);</pre>
372
 
<p>
373
 
Removes the list of widgets and adds them to the clipboard.</p>
374
 
<div class="variablelist"><table border="0">
375
 
<col align="left" valign="top">
376
 
<tbody><tr>
377
 
<td><p><span class="term"><em class="parameter"><code>widgets</code></em> :</span></p></td>
378
 
<td> a <span class="type">GList</span> of <span class="type">GladeWidgets</span>
379
 
</td>
380
 
</tr></tbody>
381
 
</table></div>
382
 
</div>
383
 
<hr>
384
 
<div class="refsect2" lang="en">
385
 
<a name="glade-command-copy"></a><h3>glade_command_copy ()</h3>
386
 
<pre class="programlisting">void                glade_command_copy                  (GList *widgets);</pre>
387
 
<p>
388
 
Copies the list of widgets and adds them to the clipboard.</p>
389
 
<div class="variablelist"><table border="0">
390
 
<col align="left" valign="top">
391
 
<tbody><tr>
392
 
<td><p><span class="term"><em class="parameter"><code>widgets</code></em> :</span></p></td>
393
 
<td> a <span class="type">GList</span> of <span class="type">GladeWidgets</span>
394
 
</td>
395
 
</tr></tbody>
396
 
</table></div>
397
 
</div>
398
 
<hr>
399
 
<div class="refsect2" lang="en">
400
 
<a name="glade-command-paste"></a><h3>glade_command_paste ()</h3>
401
 
<pre class="programlisting">void                glade_command_paste                 (GList *widgets,
402
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
403
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder);</pre>
404
 
<p>
405
 
Performs a paste command on all widgets in <em class="parameter"><code>widgets</code></em> to <em class="parameter"><code>parent</code></em>, possibly
406
 
replacing <em class="parameter"><code>placeholder</code></em> (note toplevels dont need a parent; the active project
407
 
will be used when pasting toplevel objects).</p>
408
 
<div class="variablelist"><table border="0">
409
 
<col align="left" valign="top">
410
 
<tbody>
411
 
<tr>
412
 
<td><p><span class="term"><em class="parameter"><code>widgets</code></em> :</span></p></td>
413
 
<td> a <span class="type">GList</span> of <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
414
 
</td>
415
 
</tr>
416
 
<tr>
417
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
418
 
<td> a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
419
 
</td>
420
 
</tr>
421
 
<tr>
422
 
<td><p><span class="term"><em class="parameter"><code>placeholder</code></em> :</span></p></td>
423
 
<td> a <a class="link" href="GladePlaceholder.html" title="GladePlaceholder"><span class="type">GladePlaceholder</span></a>
424
 
</td>
425
 
</tr>
426
 
</tbody>
427
 
</table></div>
428
 
</div>
429
 
<hr>
430
 
<div class="refsect2" lang="en">
431
 
<a name="glade-command-dnd"></a><h3>glade_command_dnd ()</h3>
432
 
<pre class="programlisting">void                glade_command_dnd                   (GList *widgets,
433
 
                                                         <a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *parent,
434
 
                                                         <a class="link" href="GladePlaceholder.html" title="GladePlaceholder">GladePlaceholder</a> *placeholder);</pre>
435
 
<p>
436
 
Performs a drag-n-drop command, i.e. removes the list of widgets and adds them 
437
 
to the new parent, possibly replacing <em class="parameter"><code>placeholder</code></em> (note toplevels dont need a 
438
 
parent; the active project will be used when pasting toplevel objects).</p>
439
 
<div class="variablelist"><table border="0">
440
 
<col align="left" valign="top">
441
 
<tbody>
442
 
<tr>
443
 
<td><p><span class="term"><em class="parameter"><code>widgets</code></em> :</span></p></td>
444
 
<td> a <span class="type">GList</span> of <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
445
 
</td>
446
 
</tr>
447
 
<tr>
448
 
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
449
 
<td> a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
450
 
</td>
451
 
</tr>
452
 
<tr>
453
 
<td><p><span class="term"><em class="parameter"><code>placeholder</code></em> :</span></p></td>
454
 
<td> a <a class="link" href="GladePlaceholder.html" title="GladePlaceholder"><span class="type">GladePlaceholder</span></a>
455
 
</td>
456
 
</tr>
457
 
</tbody>
458
 
</table></div>
459
 
</div>
460
 
<hr>
461
 
<div class="refsect2" lang="en">
462
 
<a name="glade-command-add-signal"></a><h3>glade_command_add_signal ()</h3>
463
 
<pre class="programlisting">void                glade_command_add_signal            (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
464
 
                                                         const GladeSignal *signal);</pre>
465
 
<p>
466
 
TODO: write me</p>
467
 
<div class="variablelist"><table border="0">
468
 
<col align="left" valign="top">
469
 
<tbody>
470
 
<tr>
471
 
<td><p><span class="term"><em class="parameter"><code>glade_widget</code></em> :</span></p></td>
472
 
<td> a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
473
 
</td>
474
 
</tr>
475
 
<tr>
476
 
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
477
 
<td> a <span class="type">GladeSignal</span>
478
 
</td>
479
 
</tr>
480
 
</tbody>
481
 
</table></div>
482
 
</div>
483
 
<hr>
484
 
<div class="refsect2" lang="en">
485
 
<a name="glade-command-remove-signal"></a><h3>glade_command_remove_signal ()</h3>
486
 
<pre class="programlisting">void                glade_command_remove_signal         (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
487
 
                                                         const GladeSignal *signal);</pre>
488
 
<p>
489
 
TODO: write me</p>
490
 
<div class="variablelist"><table border="0">
491
 
<col align="left" valign="top">
492
 
<tbody>
493
 
<tr>
494
 
<td><p><span class="term"><em class="parameter"><code>glade_widget</code></em> :</span></p></td>
495
 
<td> a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
496
 
</td>
497
 
</tr>
498
 
<tr>
499
 
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
500
 
<td> a <span class="type">GladeSignal</span>
501
 
</td>
502
 
</tr>
503
 
</tbody>
504
 
</table></div>
505
 
</div>
506
 
<hr>
507
 
<div class="refsect2" lang="en">
508
 
<a name="glade-command-change-signal"></a><h3>glade_command_change_signal ()</h3>
509
 
<pre class="programlisting">void                glade_command_change_signal         (<a class="link" href="GladeWidget.html" title="GladeWidget">GladeWidget</a> *glade_widget,
510
 
                                                         const GladeSignal *old_signal,
511
 
                                                         const GladeSignal *new_signal);</pre>
512
 
<p>
513
 
TODO: write me</p>
514
 
<div class="variablelist"><table border="0">
515
 
<col align="left" valign="top">
516
 
<tbody>
517
 
<tr>
518
 
<td><p><span class="term"><em class="parameter"><code>glade_widget</code></em> :</span></p></td>
519
 
<td> a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
520
 
</td>
521
 
</tr>
522
 
<tr>
523
 
<td><p><span class="term"><em class="parameter"><code>old_signal</code></em> :</span></p></td>
524
 
<td> a <span class="type">GladeSignal</span>
525
 
</td>
526
 
</tr>
527
 
<tr>
528
 
<td><p><span class="term"><em class="parameter"><code>new_signal</code></em> :</span></p></td>
529
 
<td> a <span class="type">GladeSignal</span>
530
 
</td>
531
 
</tr>
532
 
</tbody>
533
 
</table></div>
534
 
</div>
535
 
<hr>
536
 
<div class="refsect2" lang="en">
537
 
<a name="glade-command-set-i18n"></a><h3>glade_command_set_i18n ()</h3>
538
 
<pre class="programlisting">void                glade_command_set_i18n              (<a class="link" href="gladeui-glade-property.html#GladeProperty">GladeProperty</a> *property,
539
 
                                                         gboolean translatable,
540
 
                                                         gboolean has_context,
541
 
                                                         const gchar *context,
542
 
                                                         const gchar *comment);</pre>
543
 
<p>
544
 
Sets the i18n data on the property.</p>
545
 
<div class="variablelist"><table border="0">
546
 
<col align="left" valign="top">
547
 
<tbody>
548
 
<tr>
549
 
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
550
 
<td> a <a class="link" href="gladeui-glade-property.html#GladeProperty"><span class="type">GladeProperty</span></a>
551
 
</td>
552
 
</tr>
553
 
<tr>
554
 
<td><p><span class="term"><em class="parameter"><code>translatable</code></em> :</span></p></td>
555
 
<td> a <span class="type">gboolean</span>
556
 
</td>
557
 
</tr>
558
 
<tr>
559
 
<td><p><span class="term"><em class="parameter"><code>has_context</code></em> :</span></p></td>
560
 
<td> a <span class="type">gboolean</span>
561
 
</td>
562
 
</tr>
563
 
<tr>
564
 
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
565
 
<td> a <span class="type">const</span> gchar *
566
 
</td>
567
 
</tr>
568
 
<tr>
569
 
<td><p><span class="term"><em class="parameter"><code>comment</code></em> :</span></p></td>
570
 
<td> a <span class="type">const</span> gchar *
571
 
</td>
572
 
</tr>
573
 
</tbody>
574
 
</table></div>
575
 
</div>
576
 
</div>
577
 
</div>
578
 
<div class="footer">
579
 
<hr>
580
 
          Generated by GTK-Doc V1.12</div>
581
 
</body>
582
 
</html>