41
41
<div class="refsynopsisdiv">
42
42
<a name="libgimpbase-gimpenv.synopsis"></a><h2>Synopsis</h2>
43
43
<pre class="synopsis">
44
void <a class="link" href="libgimpbase-gimpenv.html#gimp-env-init" title="gimp_env_init ()">gimp_env_init</a> (<a
45
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
46
>gboolean</a> plug_in);
48
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
49
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-directory" title="gimp_directory ()">gimp_directory</a> (void);
51
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
52
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-data-directory" title="gimp_data_directory ()">gimp_data_directory</a> (void);
54
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
55
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-locale-directory" title="gimp_locale_directory ()">gimp_locale_directory</a> (void);
57
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
58
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-plug-in-directory" title="gimp_plug_in_directory ()">gimp_plug_in_directory</a> (void);
60
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
61
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-sysconf-directory" title="gimp_sysconf_directory ()">gimp_sysconf_directory</a> (void);
63
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
64
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-user-directory" title="gimp_user_directory ()">gimp_user_directory</a> (<a class="link" href="libgimpbase-gimpbaseenums.html#GimpUserDirectory" title="enum GimpUserDirectory">GimpUserDirectory</a> type);
66
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-personal-rc-file" title="gimp_personal_rc_file ()">gimp_personal_rc_file</a> (const <a
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
69
>gchar</a> *basename);
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
72
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-gtkrc" title="gimp_gtkrc ()">gimp_gtkrc</a> (void);
74
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
75
>GList</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-parse" title="gimp_path_parse ()">gimp_path_parse</a> (const <a
76
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
79
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
82
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
85
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
86
>GList</a> **check_failed);
88
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
89
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-to-str" title="gimp_path_to_str ()">gimp_path_to_str</a> (<a
90
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
92
void <a class="link" href="libgimpbase-gimpenv.html#gimp-path-free" title="gimp_path_free ()">gimp_path_free</a> (<a
93
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
96
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
97
>gchar</a>* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-get-user-writable-dir" title="gimp_path_get_user_writable_dir ()">gimp_path_get_user_writable_dir</a> (<a
98
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
44
void <a class="link" href="libgimpbase-gimpenv.html#gimp-env-init" title="gimp_env_init ()">gimp_env_init</a> (gboolean plug_in);
45
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-directory" title="gimp_directory ()">gimp_directory</a> (void);
46
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-data-directory" title="gimp_data_directory ()">gimp_data_directory</a> (void);
47
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-locale-directory" title="gimp_locale_directory ()">gimp_locale_directory</a> (void);
48
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-plug-in-directory" title="gimp_plug_in_directory ()">gimp_plug_in_directory</a> (void);
49
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-sysconf-directory" title="gimp_sysconf_directory ()">gimp_sysconf_directory</a> (void);
50
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-user-directory" title="gimp_user_directory ()">gimp_user_directory</a> (<a class="link" href="libgimpbase-gimpbaseenums.html#GimpUserDirectory" title="enum GimpUserDirectory">GimpUserDirectory</a> type);
51
gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-personal-rc-file" title="gimp_personal_rc_file ()">gimp_personal_rc_file</a> (const gchar *basename);
52
const gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-gtkrc" title="gimp_gtkrc ()">gimp_gtkrc</a> (void);
53
GList* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-parse" title="gimp_path_parse ()">gimp_path_parse</a> (const gchar *path,
56
GList **check_failed);
57
gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-to-str" title="gimp_path_to_str ()">gimp_path_to_str</a> (GList *path);
58
void <a class="link" href="libgimpbase-gimpenv.html#gimp-path-free" title="gimp_path_free ()">gimp_path_free</a> (GList *path);
59
gchar* <a class="link" href="libgimpbase-gimpenv.html#gimp-path-get-user-writable-dir" title="gimp_path_get_user_writable_dir ()">gimp_path_get_user_writable_dir</a> (GList *path);
102
62
<div class="refsect1" lang="en">
110
70
<a name="libgimpbase-gimpenv.details"></a><h2>Details</h2>
111
71
<div class="refsect2" lang="en">
112
72
<a name="gimp-env-init"></a><h3>gimp_env_init ()</h3>
113
<pre class="programlisting">void gimp_env_init (<a
114
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
115
>gboolean</a> plug_in);</pre>
73
<pre class="programlisting">void gimp_env_init (gboolean plug_in);</pre>
117
75
You don't need to care about this function. It is being called for
118
you automatically (by means of the <a
119
href="/usr/share/gtk-doc/html/libgimp/libgimp-gimp.html#MAIN:CAPS"
120
><code class="function">MAIN()</code></a> macro that every plug-in
76
you automatically (by means of the <code class="function">MAIN()</code> macro that every plug-in
121
77
runs). Calling it again will cause a fatal error.</p>
301
245
<div class="refsect2" lang="en">
302
246
<a name="gimp-user-directory"></a><h3>gimp_user_directory ()</h3>
303
<pre class="programlisting">const <a
304
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
305
>gchar</a>* gimp_user_directory (<a class="link" href="libgimpbase-gimpbaseenums.html#GimpUserDirectory" title="enum GimpUserDirectory">GimpUserDirectory</a> type);</pre>
247
<pre class="programlisting">const gchar* gimp_user_directory (<a class="link" href="libgimpbase-gimpbaseenums.html#GimpUserDirectory" title="enum GimpUserDirectory">GimpUserDirectory</a> type);</pre>
307
249
Identifies special folders used frequently by applications, but
308
250
which may not have the same name or location on any given system.
339
279
<div class="refsect2" lang="en">
340
280
<a name="gimp-personal-rc-file"></a><h3>gimp_personal_rc_file ()</h3>
341
<pre class="programlisting"><a
342
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
343
>gchar</a>* gimp_personal_rc_file (const <a
344
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
345
>gchar</a> *basename);</pre>
281
<pre class="programlisting">gchar* gimp_personal_rc_file (const gchar *basename);</pre>
347
283
Returns the name of a file in the user-specific GIMP settings directory.
350
286
The returned string is allocated dynamically and *SHOULD* be freed
352
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
353
><code class="function">g_free()</code></a> after use. The returned string is in the encoding
287
with <code class="function">g_free()</code> after use. The returned string is in the encoding
354
288
used for filenames by GLib, which isn't necessarily
355
289
UTF-8. (On Windows it always is UTF-8.)</p>
402
334
<div class="refsect2" lang="en">
403
335
<a name="gimp-path-parse"></a><h3>gimp_path_parse ()</h3>
404
<pre class="programlisting"><a
405
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
406
>GList</a>* gimp_path_parse (const <a
407
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
410
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
413
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
416
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
417
>GList</a> **check_failed);</pre>
336
<pre class="programlisting">GList* gimp_path_parse (const gchar *path,
339
GList **check_failed);</pre>
439
359
<td><p><span class="term"><em class="parameter"><code>check</code></em> :</span></p></td>
441
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
442
><code class="literal">TRUE</code></a> if you want the directories to be checked.
360
<td> <code class="literal">TRUE</code> if you want the directories to be checked.
446
364
<td><p><span class="term"><em class="parameter"><code>check_failed</code></em> :</span></p></td>
448
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
449
><span class="type">GList</span></a> of path elements for which the
365
<td> Returns a <span class="type">GList</span> of path elements for which the
454
370
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
456
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
457
><span class="type">GList</span></a> of all directories in <em class="parameter"><code>path</code></em>.
371
<td> A <span class="type">GList</span> of all directories in <em class="parameter"><code>path</code></em>.
516
422
<div class="refsect2" lang="en">
517
423
<a name="gimp-path-get-user-writable-dir"></a><h3>gimp_path_get_user_writable_dir ()</h3>
518
<pre class="programlisting"><a
519
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
520
>gchar</a>* gimp_path_get_user_writable_dir (<a
521
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
522
>GList</a> *path);</pre>
424
<pre class="programlisting">gchar* gimp_path_get_user_writable_dir (GList *path);</pre>
524
Note that you have to <a
525
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
526
><code class="function">g_free()</code></a> the returned string.</p>
426
Note that you have to <code class="function">g_free()</code> the returned string.</p>