~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimpconfig/html/libgimpconfig-gimpconfig-path.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

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=US-ASCII">
 
5
<title>gimpconfig-path</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
7
<link rel="start" href="index.html" title="GIMP Config Library Reference Manual">
 
8
<link rel="up" href="libgimpconfig.html" title="Part&#160;I.&#160;GIMP Config Library">
 
9
<link rel="prev" href="libgimpconfig-gimpconfig-params.html" title="gimpconfig-params">
 
10
<link rel="next" href="libgimpconfig-gimpconfig-utils.html" title="gimpconfig-utils">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="part" href="libgimpconfig.html" title="Part&#160;I.&#160;GIMP Config Library">
 
14
<link rel="chapter" href="libgimpconfig-hierarchy.html" title="Object Hierarchy">
 
15
<link rel="index" href="libgimpconfig-index.html" title="Index">
 
16
<link rel="index" href="libgimpconfig-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
 
17
<link rel="index" href="libgimpconfig-index-deprecated.html" title="Index of deprecated symbols">
 
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="libgimpconfig-gimpconfig-params.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
23
<td><a accesskey="u" href="libgimpconfig.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">GIMP Config Library Reference Manual</th>
 
26
<td><a accesskey="n" href="libgimpconfig-gimpconfig-utils.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
27
</tr>
 
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2556226" class="shortcut">Top</a>
 
29
                  &#160;|&#160;
 
30
                  <a href="#id2571470" class="shortcut">Description</a></nobr></td></tr>
 
31
</table>
 
32
<div class="refentry" lang="en">
 
33
<a name="libgimpconfig-gimpconfig-path"></a><div class="titlepage"></div>
 
34
<div class="refnamediv"><table width="100%"><tr>
 
35
<td valign="top">
 
36
<h2>
 
37
<a name="id2556226"></a><span class="refentrytitle">gimpconfig-path</span>
 
38
</h2>
 
39
<p>gimpconfig-path</p>
 
40
</td>
 
41
<td valign="top" align="right"></td>
 
42
</tr></table></div>
 
43
<div class="refsynopsisdiv">
 
44
<h2>Synopsis</h2>
 
45
<pre class="synopsis">
 
46
 
 
47
 
 
48
 
 
49
enum                <a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType">GimpConfigPathType</a>;
 
50
GParamSpec*         <a href="libgimpconfig-gimpconfig-path.html#gimp-param-spec-config-path">gimp_param_spec_config_path</a>         (const gchar *name,
 
51
                                                         const gchar *nick,
 
52
                                                         const gchar *blurb,
 
53
                                                         <a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType">GimpConfigPathType</a> type,
 
54
                                                         const gchar *default_value,
 
55
                                                         GParamFlags flags);
 
56
<a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType">GimpConfigPathType</a>  <a href="libgimpconfig-gimpconfig-path.html#gimp-param-spec-config-path-type">gimp_param_spec_config_path_type</a>    (GParamSpec *pspec);
 
57
gchar*              <a href="libgimpconfig-gimpconfig-path.html#gimp-config-path-expand">gimp_config_path_expand</a>             (const gchar *path,
 
58
                                                         gboolean recode,
 
59
                                                         GError **error);
 
60
gchar*              <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-data-path">gimp_config_build_data_path</a>         (const gchar *name);
 
61
gchar*              <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-writable-path">gimp_config_build_writable_path</a>     (const gchar *name);
 
62
gchar*              <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-plug-in-path">gimp_config_build_plug_in_path</a>      (const gchar *name);
 
63
#define             <a href="libgimpconfig-gimpconfig-path.html#GIMP-VALUE-HOLDS-CONFIG-PATH:CAPS">GIMP_VALUE_HOLDS_CONFIG_PATH</a>        (value)
 
64
 
 
65
</pre>
 
66
</div>
 
67
<div class="refsect1" lang="en">
 
68
<a name="id2571470"></a><h2>Description</h2>
 
69
<p>
 
70
 
 
71
</p>
 
72
</div>
 
73
<div class="refsect1" lang="en">
 
74
<a name="id2571486"></a><h2>Details</h2>
 
75
<div class="refsect2" lang="en">
 
76
<a name="id2557500"></a><h3>
 
77
<a name="GimpConfigPathType"></a>enum GimpConfigPathType</h3>
 
78
<a class="indexterm" name="id2557513"></a><pre class="programlisting">typedef enum
 
79
{
 
80
  GIMP_CONFIG_PATH_FILE,
 
81
  GIMP_CONFIG_PATH_FILE_LIST,
 
82
  GIMP_CONFIG_PATH_DIR,
 
83
  GIMP_CONFIG_PATH_DIR_LIST
 
84
} GimpConfigPathType;
 
85
</pre>
 
86
<p>
 
87
 
 
88
</p>
 
89
</div>
 
90
<hr>
 
91
<div class="refsect2" lang="en">
 
92
<a name="id2557530"></a><h3>
 
93
<a name="gimp-param-spec-config-path"></a>gimp_param_spec_config_path ()</h3>
 
94
<a class="indexterm" name="id2557544"></a><pre class="programlisting">GParamSpec*         gimp_param_spec_config_path         (const gchar *name,
 
95
                                                         const gchar *nick,
 
96
                                                         const gchar *blurb,
 
97
                                                         <a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType">GimpConfigPathType</a> type,
 
98
                                                         const gchar *default_value,
 
99
                                                         GParamFlags flags);</pre>
 
100
<p>
 
101
Creates a param spec to hold a filename, dir name,
 
102
or list of file or dir names.
 
103
See <code class="function">g_param_spec_internal()</code> for more information.</p>
 
104
<p>
 
105
 
 
106
</p>
 
107
<div class="variablelist"><table border="0">
 
108
<col align="left" valign="top">
 
109
<tbody>
 
110
<tr>
 
111
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
112
<td>          Canonical name of the param
 
113
</td>
 
114
</tr>
 
115
<tr>
 
116
<td><span class="term"><em class="parameter"><code>nick</code></em>&#160;:</span></td>
 
117
<td>          Nickname of the param
 
118
</td>
 
119
</tr>
 
120
<tr>
 
121
<td><span class="term"><em class="parameter"><code>blurb</code></em>&#160;:</span></td>
 
122
<td>         Brief desciption of param.
 
123
</td>
 
124
</tr>
 
125
<tr>
 
126
<td><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
 
127
<td>          a <span class="type">GimpParamConfigPathType</span> value.
 
128
</td>
 
129
</tr>
 
130
<tr>
 
131
<td><span class="term"><em class="parameter"><code>default_value</code></em>&#160;:</span></td>
 
132
<td> Value to use if none is assigned.
 
133
</td>
 
134
</tr>
 
135
<tr>
 
136
<td><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></td>
 
137
<td>         a combination of <span class="type">GParamFlags</span>
 
138
</td>
 
139
</tr>
 
140
<tr>
 
141
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
142
<td> a newly allocated <span class="type">GParamSpec</span> instance
 
143
 
 
144
</td>
 
145
</tr>
 
146
</tbody>
 
147
</table></div>
 
148
<p class="since">Since  GIMP 2.4
 
149
</p>
 
150
</div>
 
151
<hr>
 
152
<div class="refsect2" lang="en">
 
153
<a name="id2557748"></a><h3>
 
154
<a name="gimp-param-spec-config-path-type"></a>gimp_param_spec_config_path_type ()</h3>
 
155
<a class="indexterm" name="id2601835"></a><pre class="programlisting"><a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType">GimpConfigPathType</a>  gimp_param_spec_config_path_type    (GParamSpec *pspec);</pre>
 
156
<p>
 
157
Tells whether the path param encodes a filename,
 
158
dir name, or list of file or dir names.</p>
 
159
<p>
 
160
 
 
161
</p>
 
162
<div class="variablelist"><table border="0">
 
163
<col align="left" valign="top">
 
164
<tbody>
 
165
<tr>
 
166
<td><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></td>
 
167
<td>         A <span class="type">GParamSpec</span> for a path param
 
168
</td>
 
169
</tr>
 
170
<tr>
 
171
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
172
<td> a <a href="libgimpconfig-gimpconfig-path.html#GimpConfigPathType"><span class="type">GimpConfigPathType</span></a> value
 
173
 
 
174
</td>
 
175
</tr>
 
176
</tbody>
 
177
</table></div>
 
178
<p class="since">Since  GIMP 2.4
 
179
</p>
 
180
</div>
 
181
<hr>
 
182
<div class="refsect2" lang="en">
 
183
<a name="id2601918"></a><h3>
 
184
<a name="gimp-config-path-expand"></a>gimp_config_path_expand ()</h3>
 
185
<a class="indexterm" name="id2601931"></a><pre class="programlisting">gchar*              gimp_config_path_expand             (const gchar *path,
 
186
                                                         gboolean recode,
 
187
                                                         GError **error);</pre>
 
188
<p>
 
189
Paths as stored in the gimprc have to be treated special.  The
 
190
string may contain special identifiers such as for example
 
191
${gimp_dir} that have to be substituted before use. Also the user's
 
192
filesystem may be in a different encoding than UTF-8 (which is what
 
193
is used for the gimprc). This function does the variable
 
194
substitution for you and can also attempt to convert to the
 
195
filesystem encoding.</p>
 
196
<p>
 
197
 
 
198
</p>
 
199
<div class="variablelist"><table border="0">
 
200
<col align="left" valign="top">
 
201
<tbody>
 
202
<tr>
 
203
<td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
 
204
<td> a <code class="literal">NUL</code>-terminated string in UTF-8 encoding
 
205
</td>
 
206
</tr>
 
207
<tr>
 
208
<td><span class="term"><em class="parameter"><code>recode</code></em>&#160;:</span></td>
 
209
<td> whether to convert to the filesystem's encoding
 
210
</td>
 
211
</tr>
 
212
<tr>
 
213
<td><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></td>
 
214
<td> return location for errors
 
215
</td>
 
216
</tr>
 
217
<tr>
 
218
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
219
<td> a newly allocated <code class="literal">NUL</code>-terminated string
 
220
 
 
221
</td>
 
222
</tr>
 
223
</tbody>
 
224
</table></div>
 
225
<p class="since">Since  GIMP 2.4
 
226
</p>
 
227
</div>
 
228
<hr>
 
229
<div class="refsect2" lang="en">
 
230
<a name="id2602067"></a><h3>
 
231
<a name="gimp-config-build-data-path"></a>gimp_config_build_data_path ()</h3>
 
232
<a class="indexterm" name="id2602081"></a><pre class="programlisting">gchar*              gimp_config_build_data_path         (const gchar *name);</pre>
 
233
<p>
 
234
Creates a search path as it is used in the gimprc file.  The path
 
235
returned by <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-data-path"><code class="function">gimp_config_build_data_path()</code></a> includes a directory
 
236
below the user's gimp directory and one in the system-wide data
 
237
directory.
 
238
</p>
 
239
<p>
 
240
Note that you cannot use this path directly with <a
 
241
href="../libgimpbase/libgimpbase-gimpenv.html#gimp-path-parse"
 
242
><code class="function">gimp_path_parse()</code></a>.
 
243
As it is in the gimprc notation, you first need to expand and
 
244
recode it using <a href="libgimpconfig-gimpconfig-path.html#gimp-config-path-expand"><code class="function">gimp_config_path_expand()</code></a>.</p>
 
245
<p>
 
246
 
 
247
</p>
 
248
<div class="variablelist"><table border="0">
 
249
<col align="left" valign="top">
 
250
<tbody>
 
251
<tr>
 
252
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
253
<td> directory name (in UTF-8 encoding)
 
254
</td>
 
255
</tr>
 
256
<tr>
 
257
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
258
<td> a newly allocated string
 
259
 
 
260
</td>
 
261
</tr>
 
262
</tbody>
 
263
</table></div>
 
264
<p class="since">Since  GIMP 2.4
 
265
</p>
 
266
</div>
 
267
<hr>
 
268
<div class="refsect2" lang="en">
 
269
<a name="id2590391"></a><h3>
 
270
<a name="gimp-config-build-writable-path"></a>gimp_config_build_writable_path ()</h3>
 
271
<a class="indexterm" name="id2590407"></a><pre class="programlisting">gchar*              gimp_config_build_writable_path     (const gchar *name);</pre>
 
272
<p>
 
273
Creates a search path as it is used in the gimprc file.  The path
 
274
returned by <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-writable-path"><code class="function">gimp_config_build_writable_path()</code></a> is just the writable
 
275
parts of the search path constructed by <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-data-path"><code class="function">gimp_config_build_data_path()</code></a>.
 
276
</p>
 
277
<p>
 
278
Note that you cannot use this path directly with <a
 
279
href="../libgimpbase/libgimpbase-gimpenv.html#gimp-path-parse"
 
280
><code class="function">gimp_path_parse()</code></a>.
 
281
As it is in the gimprc notation, you first need to expand and
 
282
recode it using <a href="libgimpconfig-gimpconfig-path.html#gimp-config-path-expand"><code class="function">gimp_config_path_expand()</code></a>.</p>
 
283
<p>
 
284
 
 
285
</p>
 
286
<div class="variablelist"><table border="0">
 
287
<col align="left" valign="top">
 
288
<tbody>
 
289
<tr>
 
290
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
291
<td> directory name (in UTF-8 encoding)
 
292
</td>
 
293
</tr>
 
294
<tr>
 
295
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
296
<td> a newly allocated string
 
297
 
 
298
</td>
 
299
</tr>
 
300
</tbody>
 
301
</table></div>
 
302
<p class="since">Since  GIMP 2.4
 
303
</p>
 
304
</div>
 
305
<hr>
 
306
<div class="refsect2" lang="en">
 
307
<a name="id2590521"></a><h3>
 
308
<a name="gimp-config-build-plug-in-path"></a>gimp_config_build_plug_in_path ()</h3>
 
309
<a class="indexterm" name="id2590536"></a><pre class="programlisting">gchar*              gimp_config_build_plug_in_path      (const gchar *name);</pre>
 
310
<p>
 
311
Creates a search path as it is used in the gimprc file.  The path
 
312
returned by <a href="libgimpconfig-gimpconfig-path.html#gimp-config-build-plug-in-path"><code class="function">gimp_config_build_plug_in_path()</code></a> includes a directory
 
313
below the user's gimp directory and one in the system-wide plug-in
 
314
directory.
 
315
</p>
 
316
<p>
 
317
Note that you cannot use this path directly with <a
 
318
href="../libgimpbase/libgimpbase-gimpenv.html#gimp-path-parse"
 
319
><code class="function">gimp_path_parse()</code></a>.
 
320
As it is in the gimprc notation, you first need to expand and
 
321
recode it using <a href="libgimpconfig-gimpconfig-path.html#gimp-config-path-expand"><code class="function">gimp_config_path_expand()</code></a>.</p>
 
322
<p>
 
323
 
 
324
</p>
 
325
<div class="variablelist"><table border="0">
 
326
<col align="left" valign="top">
 
327
<tbody>
 
328
<tr>
 
329
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
330
<td> directory name (in UTF-8 encoding)
 
331
</td>
 
332
</tr>
 
333
<tr>
 
334
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
335
<td> a newly allocated string
 
336
 
 
337
</td>
 
338
</tr>
 
339
</tbody>
 
340
</table></div>
 
341
<p class="since">Since  GIMP 2.4
 
342
</p>
 
343
</div>
 
344
<hr>
 
345
<div class="refsect2" lang="en">
 
346
<a name="id2603875"></a><h3>
 
347
<a name="GIMP-VALUE-HOLDS-CONFIG-PATH:CAPS"></a>GIMP_VALUE_HOLDS_CONFIG_PATH()</h3>
 
348
<a class="indexterm" name="id2603887"></a><pre class="programlisting">#define GIMP_VALUE_HOLDS_CONFIG_PATH(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_CONFIG_PATH))
 
349
</pre>
 
350
<p>
 
351
 
 
352
</p>
 
353
<div class="variablelist"><table border="0">
 
354
<col align="left" valign="top">
 
355
<tbody><tr>
 
356
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
 
357
<td>
 
358
 
 
359
 
 
360
</td>
 
361
</tr></tbody>
 
362
</table></div>
 
363
</div>
 
364
</div>
 
365
</div>
 
366
</body>
 
367
</html>