~ubuntu-branches/ubuntu/trusty/guile-gnome-platform/trusty-proposed

« back to all changes in this revision

Viewing changes to libgnomeui/doc/defuns-gnome-app-helper.xml.texi

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Rottmann
  • Date: 2009-03-01 22:51:48 UTC
  • mfrom: (1.1.2 upstream) (3.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090301225148-5cubt342wiv8jpmf
Tags: 2.16.1-1
* New upstream release.
* Upstream bumped API, hence all package names changed from
  guile-gnome0-* to guile-gnome2-*.
* Standards-Version 3.8.0 (no changes).
* Remove unused guile-gnome2-cairo.install file.
* Added ${misc:Depends} to all packages.
* Do not build-depend on a -1 revision of the g-wrap packages.
* Add a proper "Copyright YEARS AUTHORS" line to debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
@c %start of fragment
3
 
 
4
 
@deffn Function gnome-accelerators-sync 
5
 
Flush the accelerator definitions into the application specific configuration
6
 
file $HOME/.gnome2/accels/<app-id>.
7
 
 
8
 
@end deffn
9
 
 
10
 
@deffn Function gnome-app-fill-menu  (menu_shell@tie{}@code{<gtk-menu-shell>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (accel_group@tie{}@code{<gtk-accel-group>}) (uline_accels@tie{}@code{bool}) (pos@tie{}@code{int})
11
 
Fills the specified @var{menu-shell} with items created from the specified
12
 
@var{uiinfo}, inserting them from the item number @var{pos} on. The @var{accel}
13
 
group will be used as the accel group for all newly created sub menus and serves
14
 
as the global accel group for all menu item hotkeys. If it is passed as
15
 
@samp{@code{#f}}, global hotkeys will be disabled.
16
 
 
17
 
@table @var
18
 
@item menu-shell
19
 
A @code{<gtk-menu-shell>} instance (a menu bar).
20
 
 
21
 
@item uiinfo
22
 
A pointer to the first element in an array of @code{<gnome-ui-info>} structures.
23
 
The last element of the array should have a type of
24
 
@code{<gnome-app-ui-endofinfo>}.
25
 
 
26
 
@item accel-group
27
 
A @code{<gtk-accel-group>}.
28
 
 
29
 
@item uline-accels
30
 
@samp{@code{#t}} if underline accelerators will be drawn for the menu item
31
 
labels.
32
 
 
33
 
@item pos
34
 
The position in the menu bar at which to start inserting items.
35
 
 
36
 
@end table
37
 
 
38
 
@end deffn
39
 
 
40
 
@deffn Function gnome-app-fill-menu-with-data  (menu_shell@tie{}@code{<gtk-menu-shell>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (accel_group@tie{}@code{<gtk-accel-group>}) (uline_accels@tie{}@code{bool}) (pos@tie{}@code{int}) (user_data@tie{}@code{<gpointer>})
41
 
This is the same as @code{gnome-app-fill-menu}, except that all the user data
42
 
pointers are filled with the value of @var{user-data}.
43
 
 
44
 
@table @var
45
 
@item menu-shell
46
 
A @code{<gtk-menu-shell>} instance (a menu bar).
47
 
 
48
 
@item uiinfo
49
 
A pointer to the first element in an array of @code{<gnome-ui-info>} structures.
50
 
The last element of the array should have a type of
51
 
@code{<gnome-app-ui-endofinfo>}.
52
 
 
53
 
@item accel-group
54
 
A @code{<gtk-accel-group>}.
55
 
 
56
 
@item uline-accels
57
 
@samp{@code{#t}} if underline accelerators will be drawn for the menu item
58
 
labels.
59
 
 
60
 
@item pos
61
 
The position in the menu bar at which to start inserting items.
62
 
 
63
 
@item user-data
64
 
Some application-specific data.
65
 
 
66
 
@end table
67
 
 
68
 
@end deffn
69
 
 
70
 
@deffn Function gnome-app-fill-menu-custom  (menu_shell@tie{}@code{<gtk-menu-shell>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (uibdata@tie{}@code{<gnome-ui-builder-data*>}) (accel_group@tie{}@code{<gtk-accel-group>}) (uline_accels@tie{}@code{bool}) (pos@tie{}@code{int})
71
 
Fills the specified menu shell with items created from the specified
72
 
@var{uiinfo}, inserting them from item number @var{pos} on and using the
73
 
specified builder data (@var{uibdata}) -- this is intended for language
74
 
bindings.
75
 
 
76
 
The other parameters have the same meaning as in @code{gnome-app-fill-menu}.
77
 
 
78
 
@table @var
79
 
@item menu-shell
80
 
A @code{<gtk-menu-shell>} instance (a menu bar).
81
 
 
82
 
@item uiinfo
83
 
A pointer to the first element in an array of @code{<gnome-ui-info>} structures.
84
 
The last element of the array should have a type of
85
 
@code{<gnome-app-ui-endofinfo>}.
86
 
 
87
 
@item uibdata
88
 
A @code{<gnome-ui-info-builder-data>} instance.
89
 
 
90
 
@item accel-group
91
 
A @code{<gtk-accel-group>}.
92
 
 
93
 
@item uline-accels
94
 
@samp{@code{#t}} if underline accelerators will be drawn for the menu item
95
 
labels.
96
 
 
97
 
@item pos
98
 
The position in the menu bar at which to start inserting items.
99
 
 
100
 
@end table
101
 
 
102
 
@end deffn
103
 
 
104
 
@deffn Function gnome-app-ui-configure-configurable  (uiinfo@tie{}@code{<gnome-ui-info*>})
105
 
Configure all user-configurable elements in the given UI info structure. This
106
 
includes loading and setting previously-set options from GNOME config files.
107
 
 
108
 
Normally, @code{gnome-app-create-menus} calls this function for the developer,
109
 
but if something needs to be altered afterwards, this function can be called
110
 
first. The main reason for this function being a public interface is so that it
111
 
can be called from @code{gnome-popup-menu-new}, which clears a copy of the pass
112
 
in @code{<gnome-ui-info>} structures.
113
 
 
114
 
@table @var
115
 
@item uiinfo
116
 
Pointer to GNOME UI menu/toolbar info
117
 
 
118
 
@end table
119
 
 
120
 
@end deffn
121
 
 
122
 
@deffn Function gnome-app-create-menus  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>})
123
 
@deffnx Method create-menus
124
 
Constructs a menu bar and attaches it to the specified application window.
125
 
 
126
 
@table @var
127
 
@item app
128
 
A @code{<gnome-app>} instance representing the current application.
129
 
 
130
 
@item uiinfo
131
 
The first in an array @code{<gnome-ui-info>} instances containing the menu data.
132
 
 
133
 
@end table
134
 
 
135
 
@end deffn
136
 
 
137
 
@deffn Function gnome-app-create-menus-interp  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (relay_func@tie{}@code{<gtk-callback-marshal>}) (data@tie{}@code{<gpointer>}) (destroy_func@tie{}@code{<gtk-destroy-notify>})
138
 
@deffnx Method create-menus-interp
139
 
Identical to @code{gnome-app-create-menus}, except that extra functions and data
140
 
can be passed in for finer control of the destruction and marshalling.
141
 
 
142
 
@table @var
143
 
@item app
144
 
A @code{<gnome-app>} instance, representing the current application.
145
 
 
146
 
@item uiinfo
147
 
The first item in an array of @code{<gnome-ui-info>} structures describing the
148
 
menu bar.
149
 
 
150
 
@item relay-func
151
 
A marshaller for the signal callbacks.
152
 
 
153
 
@item data
154
 
Application specific data passed to the signal callback functions.
155
 
 
156
 
@item destroy-func
157
 
The function to call when the menu bar is destroyed.
158
 
 
159
 
@end table
160
 
 
161
 
@end deffn
162
 
 
163
 
@deffn Function gnome-app-create-menus-with-data  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (user_data@tie{}@code{<gpointer>})
164
 
@deffnx Method create-menus-with-data
165
 
Identical to @code{gnome-app-create-menus}, except that @var{user-data} is
166
 
passed to all the callback functions when signals are emitted.
167
 
 
168
 
@table @var
169
 
@item app
170
 
A @code{<gnome-app>} instance representing the current application.
171
 
 
172
 
@item uiinfo
173
 
The first in an array @code{<gnome-ui-info>} instances containing the menu data.
174
 
 
175
 
@item user-data
176
 
Application-specific data that is passed to every callback function.
177
 
 
178
 
@end table
179
 
 
180
 
@end deffn
181
 
 
182
 
@deffn Function gnome-app-create-menus-custom  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (uibdata@tie{}@code{<gnome-ui-builder-data*>})
183
 
@deffnx Method create-menus-custom
184
 
Identical to @code{gnome-app-create-menus}, except that @var{uibdata} is also
185
 
specified for creating the signal handlers. Mostly for use by language bindings.
186
 
 
187
 
@table @var
188
 
@item app
189
 
A @code{<gnome-app>} instance representing the current application.
190
 
 
191
 
@item uiinfo
192
 
The first in an array @code{<gnome-ui-info>} instances containing the menu data.
193
 
 
194
 
@item uibdata
195
 
An appropriate @code{<gnome-ui-builder-data>} instance.
196
 
 
197
 
@end table
198
 
 
199
 
@end deffn
200
 
 
201
 
@deffn Function gnome-app-fill-toolbar  (toolbar@tie{}@code{<gtk-toolbar>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (accel_group@tie{}@code{<gtk-accel-group>})
202
 
Fills @var{toolbar} with buttons specified in @var{uiinfo}. If @var{accel-group}
203
 
is not @samp{@code{#f}}, the items' accelrator keys are put into it.
204
 
 
205
 
@table @var
206
 
@item toolbar
207
 
A @code{<gtk-toolbar>} instance.
208
 
 
209
 
@item uiinfo
210
 
An array of @code{<gnome-ui-info>} structures containing the items for the
211
 
toolbar.
212
 
 
213
 
@item accel-group
214
 
A @code{<gtk-accel-group>} for holding the accelerator keys of the items (or
215
 
@samp{@code{#f}}).
216
 
 
217
 
@end table
218
 
 
219
 
@end deffn
220
 
 
221
 
@deffn Function gnome-app-fill-toolbar-with-data  (toolbar@tie{}@code{<gtk-toolbar>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (accel_group@tie{}@code{<gtk-accel-group>}) (user_data@tie{}@code{<gpointer>})
222
 
The same as @code{gnome-app-fill-toolbar}, except that the user data pointers in
223
 
the signal handlers are set to @var{user-data}.
224
 
 
225
 
@table @var
226
 
@item toolbar
227
 
A @code{<gtk-toolbar>} instance.
228
 
 
229
 
@item uiinfo
230
 
An array of @code{<gnome-ui-info>} structures containing the items for the
231
 
toolbar.
232
 
 
233
 
@item accel-group
234
 
A @code{<gtk-accel-group>} for holding the accelerator keys of the items (or
235
 
@samp{@code{#f}}).
236
 
 
237
 
@item user-data
238
 
Application specific data.
239
 
 
240
 
@end table
241
 
 
242
 
@end deffn
243
 
 
244
 
@deffn Function gnome-app-fill-toolbar-custom  (toolbar@tie{}@code{<gtk-toolbar>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (uibdata@tie{}@code{<gnome-ui-builder-data*>}) (accel_group@tie{}@code{<gtk-accel-group>})
245
 
The same as @code{gnome-app-fill-toolbar}, except that the sepcified
246
 
@var{uibdata} instance is used. This is mostly for the benefit of language
247
 
bindings.
248
 
 
249
 
@table @var
250
 
@item toolbar
251
 
A @code{<gtk-toolbar>} instance.
252
 
 
253
 
@item uiinfo
254
 
An array of @code{<gnome-ui-info>} structures containing the items for the
255
 
toolbar.
256
 
 
257
 
@item uibdata
258
 
The @code{<gnome-ui-builder-data>} data for the toolbar.
259
 
 
260
 
@item accel-group
261
 
A @code{<gtk-accel-group>} for holding the accelerator keys of the items (or
262
 
@samp{@code{#f}}).
263
 
 
264
 
@end table
265
 
 
266
 
@end deffn
267
 
 
268
 
@deffn Function gnome-app-create-toolbar  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>})
269
 
@deffnx Method create-toolbar
270
 
Constructs a toolbar and attaches it to the specified application window.
271
 
 
272
 
@table @var
273
 
@item app
274
 
A @code{<gnome-app>} instance.
275
 
 
276
 
@item uiinfo
277
 
A @code{<gnome-ui-info>} array specifying the contents of the toolbar.
278
 
 
279
 
@end table
280
 
 
281
 
@end deffn
282
 
 
283
 
@deffn Function gnome-app-create-toolbar-interp  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (relay_func@tie{}@code{<gtk-callback-marshal>}) (data@tie{}@code{<gpointer>}) (destroy_func@tie{}@code{<gtk-destroy-notify>})
284
 
@deffnx Method create-toolbar-interp
285
 
Constructs a toolbar and attaches it to the specified application window -- this
286
 
version is intended for language bindings.
287
 
 
288
 
@table @var
289
 
@item app
290
 
A @code{<gnome-app>} instance.
291
 
 
292
 
@item uiinfo
293
 
A @code{<gnome-ui-info>} array specifying the contents of the toolbar.
294
 
 
295
 
@item relay-func
296
 
Argument marshalling function.
297
 
 
298
 
@item data
299
 
Application specific data to pass to signal callbacks.
300
 
 
301
 
@item destroy-func
302
 
The function to call when the toolbar is destroyed.
303
 
 
304
 
@end table
305
 
 
306
 
@end deffn
307
 
 
308
 
@deffn Function gnome-app-create-toolbar-with-data  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (user_data@tie{}@code{<gpointer>})
309
 
@deffnx Method create-toolbar-with-data
310
 
Constructs a toolbar, sets all the user data pointers to @var{user-data}, and
311
 
attaches it to @var{app}.
312
 
 
313
 
@table @var
314
 
@item app
315
 
A @code{<gnome-app>} instance.
316
 
 
317
 
@item uiinfo
318
 
A @code{<gnome-ui-info>} array specifying the contents of the toolbar.
319
 
 
320
 
@item user-data
321
 
Application specific data to be sent to each signal callback function.
322
 
 
323
 
@end table
324
 
 
325
 
@end deffn
326
 
 
327
 
@deffn Function gnome-app-create-toolbar-custom  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (uibdata@tie{}@code{<gnome-ui-builder-data*>})
328
 
@deffnx Method create-toolbar-custom
329
 
Constructs a toolbar and attaches it to the @var{app} window, using
330
 
@var{uibdata} builder data -- intended for language bindings.
331
 
 
332
 
@table @var
333
 
@item app
334
 
A @code{<gnome-app>} instance.
335
 
 
336
 
@item uiinfo
337
 
A @code{<gnome-ui-info>} array specifying the contents of the toolbar.
338
 
 
339
 
@item uibdata
340
 
A @code{<gnome-ui-builder-data>} instance specifying the handlers to use for the
341
 
toolbar.
342
 
 
343
 
@end table
344
 
 
345
 
@end deffn
346
 
 
347
 
@deffn Function gnome-app-find-menu-pos  (parent@tie{}@code{<gtk-widget>}) (path@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) (pos@tie{}@code{int})
348
 
Finds a menu item described by path starting in the @code{<gtk-menu-shell>} top
349
 
and returns its parent @code{<gtk-menu-shell>} and the position after this item
350
 
in @var{pos}. The meaning of @var{pos} is that a subsequent call to
351
 
gtk_menu_shell_insert(p, w, pos) would then insert widget w in GtkMenuShell p
352
 
right after the menu item described by path.
353
 
 
354
 
@table @var
355
 
@item parent
356
 
Root menu shell widget containing menu items to be searched.
357
 
 
358
 
@item path
359
 
Specifies the target menu item by menu path.
360
 
 
361
 
@item pos
362
 
Used to hold the returned menu items' position.
363
 
 
364
 
@item ret
365
 
The parent menu shell of @var{path}.
366
 
 
367
 
@end table
368
 
 
369
 
@end deffn
370
 
 
371
 
@deffn Function gnome-app-remove-menus  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (items@tie{}@code{int})
372
 
@deffnx Method remove-menus
373
 
Removes @var{items} items from the existing @var{app}'s menu structure,
374
 
beginning with item described by @var{path}.
375
 
 
376
 
The @var{path} argument should be in the form "File/.../.../Something". "" will
377
 
insert the item as the first one in the menubar, "File/" will insert it as the
378
 
first one in the File menu, "File/Settings" will insert it after the Setting
379
 
item in the File menu use of "File/<Separator>" should be obvious. However, the
380
 
use of "<Seperator>" stops after the first separator.
381
 
 
382
 
@table @var
383
 
@item app
384
 
A @code{<gnome-app>} instance.
385
 
 
386
 
@item path
387
 
A path to the menu item concerned.
388
 
 
389
 
@item items
390
 
The number of items to remove.
391
 
 
392
 
@end table
393
 
 
394
 
@end deffn
395
 
 
396
 
@deffn Function gnome-app-remove-menu-range  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (start@tie{}@code{int}) (items@tie{}@code{int})
397
 
@deffnx Method remove-menu-range
398
 
Same as the @code{gnome-app-remove-menus}, except it removes the specified
399
 
number of @var{items} from the existing @var{app}'s menu structure begining with
400
 
item described by (@var{path} plus @var{start}). This is very useful for adding
401
 
and removing Recent document items in the File menu.
402
 
 
403
 
@table @var
404
 
@item app
405
 
A @code{<gnome-app>} instance.
406
 
 
407
 
@item path
408
 
A path to the menu item concerned.
409
 
 
410
 
@item start
411
 
An offset beyond the start of @var{path} at which to begin removing.
412
 
 
413
 
@item items
414
 
The number of items to remove.
415
 
 
416
 
@end table
417
 
 
418
 
@end deffn
419
 
 
420
 
@deffn Function gnome-app-insert-menus-custom  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (uiinfo@tie{}@code{<gnome-ui-info*>}) (uibdata@tie{}@code{<gnome-ui-builder-data*>})
421
 
@deffnx Method insert-menus-custom
422
 
Inserts menus described by @var{uiinfo} in existing @var{app}'s menu structure
423
 
right after the item described by @var{path}. The @var{uibdata} parameter makes
424
 
this, again, most useful for language bindings.
425
 
 
426
 
@table @var
427
 
@item app
428
 
A @code{<gnome-app>} instance.
429
 
 
430
 
@item path
431
 
A path to the menu item concerned.
432
 
 
433
 
@item uiinfo
434
 
A @code{<gnome-ui-info>} array describing the menus.
435
 
 
436
 
@item uibdata
437
 
A @code{<gnome-ui-builder-data>} instance describing the functions to attach as
438
 
the menu's callbacks.
439
 
 
440
 
@end table
441
 
 
442
 
@end deffn
443
 
 
444
 
@deffn Function gnome-app-insert-menus  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (menuinfo@tie{}@code{<gnome-ui-info*>})
445
 
@deffnx Method insert-menus
446
 
Insert the menus given by @var{menuinfo} beginning at @var{path} into the
447
 
pre-existing @var{app}.
448
 
 
449
 
@table @var
450
 
@item app
451
 
A @code{<gnome-app>} instance.
452
 
 
453
 
@item path
454
 
A path to the menu item concerned.
455
 
 
456
 
@item menuinfo
457
 
A @code{<gnome-ui-info>} array describing the menus.
458
 
 
459
 
@end table
460
 
 
461
 
@end deffn
462
 
 
463
 
@deffn Function gnome-app-insert-menus-with-data  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (menuinfo@tie{}@code{<gnome-ui-info*>}) (data@tie{}@code{<gpointer>})
464
 
@deffnx Method insert-menus-with-data
465
 
This is the same as @code{gnome-app-insert-menus}, except that the specified
466
 
@var{data} is passed to each signal callback.
467
 
 
468
 
@table @var
469
 
@item app
470
 
A @code{<gnome-app>} instance.
471
 
 
472
 
@item path
473
 
A path to the menu item concerned.
474
 
 
475
 
@item menuinfo
476
 
A @code{<gnome-ui-info>} array describing the menus.
477
 
 
478
 
@item data
479
 
Application specific data to send to each signal callback.
480
 
 
481
 
@end table
482
 
 
483
 
@end deffn
484
 
 
485
 
@deffn Function gnome-app-insert-menus-interp  (self@tie{}@code{<gnome-app>}) (path@tie{}@code{mchars}) (menuinfo@tie{}@code{<gnome-ui-info*>}) (relay_func@tie{}@code{<gtk-callback-marshal>}) (data@tie{}@code{<gpointer>}) (destroy_func@tie{}@code{<gtk-destroy-notify>})
486
 
@deffnx Method insert-menus-interp
487
 
THe same as @code{gnome-app-insert-menus}, except that the given functions are
488
 
attached to each menu item. Mostly of use for language bindings.
489
 
 
490
 
@table @var
491
 
@item app
492
 
A @code{<gnome-app>} instance.
493
 
 
494
 
@item path
495
 
A path to the menu item concerned.
496
 
 
497
 
@item menuinfo
498
 
A @code{<gnome-ui-info>} array describing the menus.
499
 
 
500
 
@item relay-func
501
 
A custom marshallar for signal data.,
502
 
 
503
 
@item data
504
 
Application-specific data to send to each signal callback.
505
 
 
506
 
@item destroy-func
507
 
The function to call when the menu item is destroyed.
508
 
 
509
 
@end table
510
 
 
511
 
@end deffn
512
 
 
513
 
@deffn Function gnome-app-install-appbar-menu-hints  (appbar@tie{}@code{<gnome-app-bar>}) (uiinfo@tie{}@code{<gnome-ui-info*>})
514
 
Install menu hints for the given @var{appbar} object. This function cannot just
515
 
be called automatically, since it is impossible to reliably find the correct
516
 
@var{appbar}.
517
 
 
518
 
@table @var
519
 
@item appbar
520
 
An existing @code{<gnome-app-bar>} instance.
521
 
 
522
 
@item uiinfo
523
 
A @code{<gnome-ui-info>} array of a menu for which hints will be set.
524
 
 
525
 
@end table
526
 
 
527
 
@end deffn
528
 
 
529
 
@deffn Function gnome-app-install-menu-hints  (self@tie{}@code{<gnome-app>}) (uiinfo@tie{}@code{<gnome-ui-info*>})
530
 
@deffnx Method install-menu-hints
531
 
Set menu hints for the @var{app} object's attached status bar.
532
 
 
533
 
@table @var
534
 
@item app
535
 
An existing @code{<gnome-app-bar>} instance.
536
 
 
537
 
@item uiinfo
538
 
A @code{<gnome-ui-info>} array of a menu for which hints will be set.
539
 
 
540
 
@end table
541
 
 
542
 
@end deffn
543
 
 
544
 
@deffn Function gnome-app-setup-toolbar  (toolbar@tie{}@code{<gtk-toolbar>}) (dock_item@tie{}@code{<bonobo-dock-item*>})
545
 
Sets up a toolbar to use GNOME user preferences.
546
 
 
547
 
@table @var
548
 
@item toolbar
549
 
Pointer to a @code{<gtk-toolbar>} instance.
550
 
 
551
 
@item dock-item
552
 
Pointer to the @code{<bonobo-dock-item>} the toolbar is inside, or
553
 
@samp{@code{#f}} for none.
554
 
 
555
 
@end table
556
 
 
557
 
@end deffn
558
 
 
559
 
@deffn Function gnome-app-helper-gettext  (string@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{mchars})
560
 
Translate @var{string} by calling @code{gettext} and then, if that did not
561
 
change the string, @code{dgettext} with the domain set to libgnome's message
562
 
domain.
563
 
 
564
 
@table @var
565
 
@item string
566
 
The string to translate.
567
 
 
568
 
@item ret
569
 
The localised value of the string.
570
 
 
571
 
@end table
572
 
 
573
 
@end deffn
574
 
 
575
 
 
576
 
@c %end of fragment