5
5
<title>gnome-util</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7
7
<link rel="start" href="index.html" title="GNOME Library Reference Manual">
8
<link rel="up" href="ch01s04.html" title="Miscellaneous">
9
<link rel="prev" href="ch01s04.html" title="Miscellaneous">
8
<link rel="up" href="ch04.html" title="Miscellaneous">
9
<link rel="prev" href="ch04.html" title="Miscellaneous">
10
10
<link rel="next" href="libgnome-gnome-sound.html" title="gnome-sound">
11
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="libgnome.html" title="GNOME Library (libgnome)">
13
<link rel="part" href="libgnome.html" title="Part I. GNOME Library (libgnome)">
14
<link rel="chapter" href="ch01.html" title="Initializing Applications and Starting Programs">
15
<link rel="chapter" href="ch02.html" title="Configuration">
16
<link rel="chapter" href="ch03.html" title="Displaying Help and External Info">
17
<link rel="chapter" href="ch04.html" title="Miscellaneous">
18
<link rel="chapter" href="ch05.html" title="Lower Level Interactions">
19
<link rel="chapter" href="ch06.html" title="Deprecated Modules">
20
<link rel="index" href="ix01.html" title="Index">
21
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
22
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
23
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
24
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
25
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
26
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
27
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
28
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
29
<link rel="index" href="ix10.html" title="Index of new symbols in 2.16">
15
31
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
32
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
33
<tr valign="middle">
18
<td><a accesskey="p" href="ch01s04.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
<td><a accesskey="u" href="ch01s04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
34
<td><a accesskey="p" href="ch04.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
35
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
36
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
37
<th width="100%" align="center">GNOME Library Reference Manual</th>
22
38
<td><a accesskey="n" href="libgnome-gnome-sound.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2822350" class="shortcut">Top</a>
40
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2990174" class="shortcut">Top</a>
26
<a href="#id2822642" class="shortcut">Description</a></nobr></td></tr>
42
<a href="#id2990465" class="shortcut">Description</a></nobr></td></tr>
28
44
<div class="refentry" lang="en">
29
45
<a name="libgnome-gnome-util"></a><div class="titlepage"></div>
30
46
<div class="refnamediv"><table width="100%"><tr>
33
<a name="id2822350"></a><span class="refentrytitle">gnome-util</span>
49
<a name="id2990174"></a><span class="refentrytitle">gnome-util</span>
35
51
<p>gnome-util — Miscellaneous utility functions.</p>
93
109
<div class="refsect1" lang="en">
94
<a name="id2822684"></a><h2>Details</h2>
110
<a name="id2990507"></a><h2>Details</h2>
95
111
<div class="refsect2" lang="en">
96
<a name="id2822695"></a><h3>
112
<a name="id2990517"></a><h3>
97
113
<a name="gnome-is-program-in-path"></a>gnome_is_program_in_path()</h3>
98
<a class="indexterm" name="id2822710"></a><pre class="programlisting">#define gnome_is_program_in_path(program)</pre>
114
<a class="indexterm" name="id2990532"></a><pre class="programlisting">#define gnome_is_program_in_path(program)</pre>
99
115
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
100
116
<h3 class="title">Warning</h3>
101
117
<p><code class="literal">gnome_is_program_in_path</code> is deprecated and should not be used in newly-written code.</p>
104
120
Deprecated, use <a
105
href="/usr/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html#g-find-program-in-path"
121
href="../glib/glib-Miscellaneous-Utility-Functions.html#g-find-program-in-path"
106
122
><span class="type">g_find_program_in_path</span></a></p>
111
127
<col align="left" valign="top">
115
<span class="term"><em class="parameter"><code>program</code></em> :</span></td>
130
<td><span class="term"><em class="parameter"><code>program</code></em> :</span></td>
116
131
<td> A program name.
121
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
135
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
123
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
137
href="../liboil/liboil-liboiljunk.html#NULL:CAPS"
124
138
><code class="literal">NULL</code></a> if program is not on the path or a string
125
139
allocated with <a
126
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-malloc"
140
href="../glib/glib-Memory-Allocation.html#g-malloc"
127
141
><code class="function">g_malloc()</code></a> with the full path name of the program
135
149
<div class="refsect2" lang="en">
136
<a name="id2822802"></a><h3>
150
<a name="id2990624"></a><h3>
137
151
<a name="g-extension-pointer"></a>g_extension_pointer ()</h3>
138
<a class="indexterm" name="id2822815"></a><pre class="programlisting">const char* g_extension_pointer (const char *path);</pre>
152
<a class="indexterm" name="id2990637"></a><pre class="programlisting">const char* g_extension_pointer (const char *path);</pre>
140
154
Extracts the extension from the end of a filename (the part after the final
141
155
'.' in the filename).</p>
146
160
<col align="left" valign="top">
150
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
163
<td><span class="term"><em class="parameter"><code>path</code></em> :</span></td>
151
164
<td> A filename or file path.
156
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
168
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
157
169
<td> A pointer to the extension part of the filename, or a
158
170
pointer to the end of the string if the filename does not
159
171
have an extension.
166
178
<div class="refsect2" lang="en">
167
<a name="id2822880"></a><h3>
179
<a name="id2990702"></a><h3>
168
180
<a name="gnome-util-prepend-user-home"></a>gnome_util_prepend_user_home()</h3>
169
<a class="indexterm" name="id2822893"></a><pre class="programlisting">#define gnome_util_prepend_user_home(x)</pre>
181
<a class="indexterm" name="id2990715"></a><pre class="programlisting">#define gnome_util_prepend_user_home(x)</pre>
171
183
Prepends the home directory of the user to a filename.
174
186
<col align="left" valign="top">
178
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
189
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
179
190
<td>A relative filename in the user's home directory.
184
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
194
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
185
195
<td>A string containing <em class="parameter"><code>x</code></em> with the user's home directory path prepended.
186
196
The string should be freed with <a
187
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
197
href="../glib/glib-Memory-Allocation.html#g-free"
188
198
><code class="function">g_free()</code></a> when no longer required.
197
207
<div class="refsect2" lang="en">
198
<a name="id2822957"></a><h3>
208
<a name="id2990778"></a><h3>
199
209
<a name="gnome-util-home-file"></a>gnome_util_home_file()</h3>
200
<a class="indexterm" name="id2822970"></a><pre class="programlisting">#define gnome_util_home_file(afile)</pre>
210
<a class="indexterm" name="id2990792"></a><pre class="programlisting">#define gnome_util_home_file(afile)</pre>
202
212
Similar to <a href="libgnome-gnome-util.html#gnome-util-prepend-user-home"><code class="function">gnome_util_prepend_user_home()</code></a>, except that "/home/fred/.gnome2",
203
213
instead of just "/home/fred/" is put on the front.
205
215
<div class="variablelist"><table border="0">
206
216
<col align="left" valign="top">
209
<span class="term"><em class="parameter"><code>afile</code></em> :</span></td>
218
<td><span class="term"><em class="parameter"><code>afile</code></em> :</span></td>
210
219
<td> A filename relative to the user's .gnome2 directory.
211
220
Returns: A string containing <em class="parameter"><code>afile</code></em> with the user's home directory path and
212
221
"/.gnome2" prepended. The string should be freed with <a
213
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
222
href="../glib/glib-Memory-Allocation.html#g-free"
214
223
><code class="function">g_free()</code></a> when no longer
223
232
<div class="refsect2" lang="en">
224
<a name="id2823036"></a><h3>
233
<a name="id2990858"></a><h3>
225
234
<a name="gnome-util-user-shell"></a>gnome_util_user_shell ()</h3>
226
<a class="indexterm" name="id2823049"></a><pre class="programlisting">char* gnome_util_user_shell (void);</pre>
235
<a class="indexterm" name="id2990871"></a><pre class="programlisting">char* gnome_util_user_shell (void);</pre>
228
237
Retrieves the user's preferred shell.</p>
243
251
<div class="refsect2" lang="en">
244
<a name="id2823090"></a><h3>
252
<a name="id2990912"></a><h3>
245
253
<a name="gnome-setenv"></a>gnome_setenv ()</h3>
246
<a class="indexterm" name="id2823103"></a><pre class="programlisting">int gnome_setenv (const char *name,
254
<a class="indexterm" name="id2990925"></a><pre class="programlisting">int gnome_setenv (const char *name,
247
255
const char *value,
249
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
257
href="../glib/glib-Basic-Types.html#gboolean"
250
258
>gboolean</a> overwrite);</pre>
252
260
Adds "<em class="parameter"><code>name</code></em>=<em class="parameter"><code>value</code></em>" to the environment. Note that on systems without setenv,
266
274
<col align="left" valign="top">
270
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
277
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
271
278
<td> An environment variable name.
276
<span class="term"><em class="parameter"><code>value</code></em> :</span></td>
282
<td><span class="term"><em class="parameter"><code>value</code></em> :</span></td>
277
283
<td> The value to assign to the environment variable.
282
<span class="term"><em class="parameter"><code>overwrite</code></em> :</span></td>
287
<td><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></td>
284
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
289
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
285
290
><code class="literal">TRUE</code></a>, overwrite the existing <em class="parameter"><code>name</code></em> variable in the
291
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
295
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
292
296
<td> <code class="literal">0</code> on success, <code class="literal">-1</code> on error
300
304
<div class="refsect2" lang="en">
301
<a name="id2823311"></a><h3>
305
<a name="id2991134"></a><h3>
302
306
<a name="gnome-unsetenv"></a>gnome_unsetenv ()</h3>
303
<a class="indexterm" name="id2823324"></a><pre class="programlisting">void gnome_unsetenv (const char *name);</pre>
307
<a class="indexterm" name="id2991146"></a><pre class="programlisting">void gnome_unsetenv (const char *name);</pre>
305
309
Removes <em class="parameter"><code>name</code></em> from the environment.
306
310
In case there is no native implementation of unsetenv,
323
326
<div class="refsect2" lang="en">
324
<a name="id2823382"></a><h3>
327
<a name="id2991205"></a><h3>
325
328
<a name="gnome-clearenv"></a>gnome_clearenv ()</h3>
326
<a class="indexterm" name="id2823395"></a><pre class="programlisting">void gnome_clearenv (void);</pre>
329
<a class="indexterm" name="id2991218"></a><pre class="programlisting">void gnome_clearenv (void);</pre>
328
331
Clears out the environment completely.
329
332
In case there is no native implementation of clearenv,
337
340
<div class="refsect2" lang="en">
338
<a name="id2823422"></a><h3>
341
<a name="id2991245"></a><h3>
339
342
<a name="g-concat-dir-and-file"></a>g_concat_dir_and_file()</h3>
340
<a class="indexterm" name="id2823438"></a><pre class="programlisting">#define g_concat_dir_and_file(dir,file)</pre>
343
<a class="indexterm" name="id2991260"></a><pre class="programlisting">#define g_concat_dir_and_file(dir,file)</pre>
341
344
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
342
345
<h3 class="title">Warning</h3>
343
346
<p><code class="literal">g_concat_dir_and_file</code> is deprecated and should not be used in newly-written code.</p>
346
349
Programs should use <a
347
href="/usr/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html#g-build-filename"
350
href="../glib/glib-Miscellaneous-Utility-Functions.html#g-build-filename"
348
351
><code class="function">g_build_filename()</code></a> instead of this function.
350
353
<div class="variablelist"><table border="0">
351
354
<col align="left" valign="top">
355
<span class="term"><em class="parameter"><code>dir</code></em> :</span></td>
357
<td><span class="term"><em class="parameter"><code>dir</code></em> :</span></td>
356
358
<td>Directory name.
361
<span class="term"><em class="parameter"><code>file</code></em> :</span></td>
362
<td><span class="term"><em class="parameter"><code>file</code></em> :</span></td>
367
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
367
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
368
368
<td>A newly allocated string that is the concatenation of <em class="parameter"><code>dir</code></em> and <em class="parameter"><code>file</code></em>,
369
369
with seperators appropriate for the filesystem automatically taken care of.
378
378
<div class="refsect2" lang="en">
379
<a name="id2823535"></a><h3>
379
<a name="id2991357"></a><h3>
380
380
<a name="g-file-exists"></a>g_file_exists()</h3>
381
<a class="indexterm" name="id2823550"></a><pre class="programlisting">#define g_file_exists(filename)</pre>
381
<a class="indexterm" name="id2991372"></a><pre class="programlisting">#define g_file_exists(filename)</pre>
382
382
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
383
383
<h3 class="title">Warning</h3>
384
384
<p><code class="literal">g_file_exists</code> is deprecated and should not be used in newly-written code.</p>
391
391
<col align="left" valign="top">
395
<span class="term"><em class="parameter"><code>filename</code></em> :</span></td>
394
<td><span class="term"><em class="parameter"><code>filename</code></em> :</span></td>
401
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
399
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
403
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
401
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
404
402
><code class="literal">TRUE</code></a> if <em class="parameter"><code>filename</code></em> exists, <a
405
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
403
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
406
404
><code class="literal">FALSE</code></a> otherwise.
415
413
<div class="refsect2" lang="en">
416
<a name="id2823640"></a><h3>
414
<a name="id2991463"></a><h3>
417
415
<a name="g-unix-error-string"></a>g_unix_error_string()</h3>
418
<a class="indexterm" name="id2823656"></a><pre class="programlisting">#define g_unix_error_string(error_num)</pre>
416
<a class="indexterm" name="id2991478"></a><pre class="programlisting">#define g_unix_error_string(error_num)</pre>
419
417
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
420
418
<h3 class="title">Warning</h3>
421
419
<p><code class="literal">g_unix_error_string</code> is deprecated and should not be used in newly-written code.</p>
424
422
Programs should use <a
425
href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strerror"
423
href="../glib/glib-String-Utility-Functions.html#g-strerror"
426
424
><code class="function">g_strerror()</code></a> instead of this function. Also, note that the
427
425
returned string is only valid until the next call to <a
428
href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strerror"
426
href="../glib/glib-String-Utility-Functions.html#g-strerror"
429
427
><code class="function">g_strerror()</code></a> or
430
428
<a href="libgnome-gnome-util.html#g-unix-error-string"><code class="function">g_unix_error_string()</code></a>.
433
431
<col align="left" valign="top">
437
<span class="term"><em class="parameter"><code>error_num</code></em> :</span></td>
434
<td><span class="term"><em class="parameter"><code>error_num</code></em> :</span></td>
438
435
<td>A system error number (see C <span class="type">errno</span> documentation for more info).
443
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
439
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
444
440
<td>A string describing the error code.
453
449
<div class="refsect2" lang="en">
454
<a name="id2823756"></a><h3>
450
<a name="id2991578"></a><h3>
455
451
<a name="gnome-util-user-home"></a>gnome_util_user_home()</h3>
456
<a class="indexterm" name="id2823771"></a><pre class="programlisting">#define gnome_util_user_home()</pre>
452
<a class="indexterm" name="id2991593"></a><pre class="programlisting">#define gnome_util_user_home()</pre>
457
453
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
458
454
<h3 class="title">Warning</h3>
459
455
<p><code class="literal">gnome_util_user_home</code> is deprecated and should not be used in newly-written code.</p>
462
458
Programs should use <a
463
href="/usr/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir"
459
href="../glib/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir"
464
460
><code class="function">g_get_home_dir()</code></a> instead of this function.
466
462
<div class="variablelist"><table border="0">
467
463
<col align="left" valign="top">
470
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
465
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
471
466
<td>The current user's home directory.
479
474
<div class="refsect2" lang="en">
480
<a name="id2823827"></a><h3>
475
<a name="id2991649"></a><h3>
481
476
<a name="g-copy-vector"></a>g_copy_vector()</h3>
482
<a class="indexterm" name="id2823842"></a><pre class="programlisting">#define g_copy_vector(vec)</pre>
477
<a class="indexterm" name="id2991663"></a><pre class="programlisting">#define g_copy_vector(vec)</pre>
483
478
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
484
479
<h3 class="title">Warning</h3>
485
480
<p><code class="literal">g_copy_vector</code> is deprecated and should not be used in newly-written code.</p>
489
href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdupv"
484
href="../glib/glib-String-Utility-Functions.html#g-strdupv"
490
485
><code class="function">g_strdupv()</code></a> instead of this function.
492
487
<div class="variablelist"><table border="0">
493
488
<col align="left" valign="top">
497
<span class="term"><em class="parameter"><code>vec</code></em> :</span></td>
491
<td><span class="term"><em class="parameter"><code>vec</code></em> :</span></td>
498
492
<td>An array of strings. <a
499
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
493
href="../liboil/liboil-liboiljunk.html#NULL:CAPS"
500
494
><code class="literal">NULL</code></a> terminated.
505
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
498
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
506
499
<td>A copy of the <a
507
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"
500
href="../liboil/liboil-liboiljunk.html#NULL:CAPS"
508
501
><code class="literal">NULL</code></a>-terminated string array.
517
510
<div class="refsect2" lang="en">
518
<a name="id2823931"></a><h3>
511
<a name="id2991753"></a><h3>
519
512
<a name="gnome-libdir-file"></a>gnome_libdir_file()</h3>
520
<a class="indexterm" name="id2823946"></a><pre class="programlisting">#define gnome_libdir_file(f)</pre>
513
<a class="indexterm" name="id2991768"></a><pre class="programlisting">#define gnome_libdir_file(f)</pre>
521
514
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
522
515
<h3 class="title">Warning</h3>
523
516
<p><code class="literal">gnome_libdir_file</code> is deprecated and should not be used in newly-written code.</p>
529
522
<col align="left" valign="top">
533
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
525
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
539
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
530
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
540
531
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
541
532
library directory (not the application's directory).
550
541
<div class="refsect2" lang="en">
551
<a name="id2824022"></a><h3>
542
<a name="id2991843"></a><h3>
552
543
<a name="gnome-datadir-file"></a>gnome_datadir_file()</h3>
553
<a class="indexterm" name="id2824037"></a><pre class="programlisting">#define gnome_datadir_file(f)</pre>
544
<a class="indexterm" name="id2991858"></a><pre class="programlisting">#define gnome_datadir_file(f)</pre>
554
545
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
555
546
<h3 class="title">Warning</h3>
556
547
<p><code class="literal">gnome_datadir_file</code> is deprecated and should not be used in newly-written code.</p>
562
553
<col align="left" valign="top">
566
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
556
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
572
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
561
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
573
562
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
574
563
data directory (not the application's directory).
583
572
<div class="refsect2" lang="en">
584
<a name="id2824112"></a><h3>
573
<a name="id2991933"></a><h3>
585
574
<a name="gnome-sound-file"></a>gnome_sound_file()</h3>
586
<a class="indexterm" name="id2824127"></a><pre class="programlisting">#define gnome_sound_file(f)</pre>
575
<a class="indexterm" name="id2991949"></a><pre class="programlisting">#define gnome_sound_file(f)</pre>
587
576
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
588
577
<h3 class="title">Warning</h3>
589
578
<p><code class="literal">gnome_sound_file</code> is deprecated and should not be used in newly-written code.</p>
595
584
<col align="left" valign="top">
599
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
587
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
605
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
592
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
606
593
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
607
594
sound files directory (not the application's directory).
616
603
<div class="refsect2" lang="en">
617
<a name="id2824203"></a><h3>
604
<a name="id2992024"></a><h3>
618
605
<a name="gnome-pixmap-file"></a>gnome_pixmap_file()</h3>
619
<a class="indexterm" name="id2824218"></a><pre class="programlisting">#define gnome_pixmap_file(f)</pre>
606
<a class="indexterm" name="id2992039"></a><pre class="programlisting">#define gnome_pixmap_file(f)</pre>
620
607
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
621
608
<h3 class="title">Warning</h3>
622
609
<p><code class="literal">gnome_pixmap_file</code> is deprecated and should not be used in newly-written code.</p>
628
615
<col align="left" valign="top">
632
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
618
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
638
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
623
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
639
624
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
640
625
pixmap directory (not the application's directory).
649
634
<div class="refsect2" lang="en">
650
<a name="id2824293"></a><h3>
635
<a name="id2992114"></a><h3>
651
636
<a name="gnome-config-file"></a>gnome_config_file()</h3>
652
<a class="indexterm" name="id2824308"></a><pre class="programlisting">#define gnome_config_file(f)</pre>
637
<a class="indexterm" name="id2992129"></a><pre class="programlisting">#define gnome_config_file(f)</pre>
653
638
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
654
639
<h3 class="title">Warning</h3>
655
640
<p><code class="literal">gnome_config_file</code> is deprecated and should not be used in newly-written code.</p>
661
646
<col align="left" valign="top">
665
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
649
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
671
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
654
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
672
655
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
673
656
config directory (not the application's directory).
682
665
<div class="refsect2" lang="en">
683
<a name="id2824383"></a><h3>
666
<a name="id2992204"></a><h3>
684
667
<a name="gnome-unconditional-libdir-file"></a>gnome_unconditional_libdir_file()</h3>
685
<a class="indexterm" name="id2824399"></a><pre class="programlisting">#define gnome_unconditional_libdir_file(f)</pre>
668
<a class="indexterm" name="id2992220"></a><pre class="programlisting">#define gnome_unconditional_libdir_file(f)</pre>
686
669
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
687
670
<h3 class="title">Warning</h3>
688
671
<p><code class="literal">gnome_unconditional_libdir_file</code> is deprecated and should not be used in newly-written code.</p>
694
677
<col align="left" valign="top">
698
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
680
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
704
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
685
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
705
686
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
706
687
library directory (not the application's directory).
715
696
<div class="refsect2" lang="en">
716
<a name="id2824475"></a><h3>
697
<a name="id2992296"></a><h3>
717
698
<a name="gnome-unconditional-datadir-file"></a>gnome_unconditional_datadir_file()</h3>
718
<a class="indexterm" name="id2824491"></a><pre class="programlisting">#define gnome_unconditional_datadir_file(f)</pre>
699
<a class="indexterm" name="id2992312"></a><pre class="programlisting">#define gnome_unconditional_datadir_file(f)</pre>
719
700
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
720
701
<h3 class="title">Warning</h3>
721
702
<p><code class="literal">gnome_unconditional_datadir_file</code> is deprecated and should not be used in newly-written code.</p>
727
708
<col align="left" valign="top">
731
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
711
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
737
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
716
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
738
717
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
739
718
data directory (not the application's directory).
748
727
<div class="refsect2" lang="en">
749
<a name="id2824567"></a><h3>
728
<a name="id2992388"></a><h3>
750
729
<a name="gnome-unconditional-sound-file"></a>gnome_unconditional_sound_file()</h3>
751
<a class="indexterm" name="id2824582"></a><pre class="programlisting">#define gnome_unconditional_sound_file(f)</pre>
730
<a class="indexterm" name="id2992403"></a><pre class="programlisting">#define gnome_unconditional_sound_file(f)</pre>
752
731
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
753
732
<h3 class="title">Warning</h3>
754
733
<p><code class="literal">gnome_unconditional_sound_file</code> is deprecated and should not be used in newly-written code.</p>
760
739
<col align="left" valign="top">
764
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
742
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
770
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
747
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
771
748
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
772
749
sound files directory (not the application's directory).
781
758
<div class="refsect2" lang="en">
782
<a name="id2824659"></a><h3>
759
<a name="id2992479"></a><h3>
783
760
<a name="gnome-unconditional-pixmap-file"></a>gnome_unconditional_pixmap_file()</h3>
784
<a class="indexterm" name="id2824675"></a><pre class="programlisting">#define gnome_unconditional_pixmap_file(f)</pre>
761
<a class="indexterm" name="id2992495"></a><pre class="programlisting">#define gnome_unconditional_pixmap_file(f)</pre>
785
762
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
786
763
<h3 class="title">Warning</h3>
787
764
<p><code class="literal">gnome_unconditional_pixmap_file</code> is deprecated and should not be used in newly-written code.</p>
793
770
<col align="left" valign="top">
797
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
773
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
803
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
778
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
804
779
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
805
780
pixmap directory (not the application's directory).
814
789
<div class="refsect2" lang="en">
815
<a name="id2824751"></a><h3>
790
<a name="id2992571"></a><h3>
816
791
<a name="gnome-unconditional-config-file"></a>gnome_unconditional_config_file()</h3>
817
<a class="indexterm" name="id2824767"></a><pre class="programlisting">#define gnome_unconditional_config_file(f)</pre>
792
<a class="indexterm" name="id2992587"></a><pre class="programlisting">#define gnome_unconditional_config_file(f)</pre>
818
793
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
819
794
<h3 class="title">Warning</h3>
820
795
<p><code class="literal">gnome_unconditional_config_file</code> is deprecated and should not be used in newly-written code.</p>
826
801
<col align="left" valign="top">
830
<span class="term"><em class="parameter"><code>f</code></em> :</span></td>
804
<td><span class="term"><em class="parameter"><code>f</code></em> :</span></td>
836
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
809
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
837
810
<td>A full path to the file <em class="parameter"><code>f</code></em> that is stored in the system's GNOME
838
811
config directory (not the application's directory).