Files
gimp/devel-docs/libgimpwidgets/html/GimpPathEditor.html
2010-08-11 01:13:56 -04:00

163 lines
15 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpPathEditor</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual"><link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets"><link rel="prev" href="GimpOffsetArea.html" title="GimpOffsetArea"><link rel="next" href="GimpPickButton.html" title="GimpPickButton"><meta name="generator" content="GTK-Doc V1.2 (XML mode)"><style type="text/css">
.synopsis, .classsynopsis {
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
.programlisting {
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
.variablelist {
padding: 4px;
margin-left: 3em;
}
.navigation {
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.navigation a {
color: #770000;
}
.navigation a:visited {
color: #550000;
}
.navigation .title {
font-size: 200%;
}
</style></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GimpOffsetArea.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Widgets Library Reference Manual</th><td><a accesskey="n" href="GimpPickButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpPathEditor"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">GimpPathEditor</span></h2><p>GimpPathEditor &#8212; Widget for editing a file search path.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
struct <a href="GimpPathEditor.html#GimpPathEditor-struct">GimpPathEditor</a>;
GtkWidget* <a href="GimpPathEditor.html#gimp-path-editor-new">gimp_path_editor_new</a> (const gchar *filesel_title,
const gchar *path);
gchar* <a href="GimpPathEditor.html#gimp-path-editor-get-path">gimp_path_editor_get_path</a> (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor);
void <a href="GimpPathEditor.html#gimp-path-editor-set-path">gimp_path_editor_set_path</a> (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *path);
gchar* <a href="GimpPathEditor.html#gimp-path-editor-get-writable-path">gimp_path_editor_get_writable_path</a>
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor);
void <a href="GimpPathEditor.html#gimp-path-editor-set-writable-path">gimp_path_editor_set_writable_path</a>
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *path);
gboolean <a href="GimpPathEditor.html#gimp-path-editor-get-dir-writable">gimp_path_editor_get_dir_writable</a>
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *directory);
void <a href="GimpPathEditor.html#gimp-path-editor-set-dir-writable">gimp_path_editor_set_dir_writable</a>
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *directory,
gboolean writable);
</pre></div><div class="refsect1" lang="en"><a name="id2586447"></a><h2>Object Hierarchy</h2><pre class="synopsis">
GObject
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----GimpPathEditor
</pre></div><div class="refsect1" lang="en"><a name="id2588187"></a><h2>Implemented Interfaces</h2><p>
GimpPathEditor implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2588202"></a><h2>Signal Prototypes</h2><pre class="synopsis">
"<a href="GimpPathEditor.html#GimpPathEditor-path-changed">path-changed</a>"
void user_function (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *,
gpointer user_data);
"<a href="GimpPathEditor.html#GimpPathEditor-writable-changed">writable-changed</a>"
void user_function (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *,
gpointer user_data);
</pre></div><div class="refsect1" lang="en"><a name="id2588257"></a><h2>Description</h2><p>
This widget is used to edit file search paths.
</p><p>
It shows a list of all directories which are in the search path. You
can click a directory to select it. The widget provides a
<a href="GimpFileEntry.html" title="GimpFileEntry"><span class="type">GimpFileEntry</span></a> to change the currently selected directory.
</p><p>
There are buttons to add or delete directories as well as "up" and "down"
buttons to change the order in which the directories will be searched.
</p><p>
Whenever the user adds, deletes, changes or reorders a directory of
the search path, the "path_changed" signal will be emitted.
</p></div><div class="refsect1" lang="en"><a name="id2592243"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2592248"></a><h3><a name="GimpPathEditor-struct"></a>struct GimpPathEditor</h3><a class="indexterm" name="id2592256"></a><pre class="programlisting">struct GimpPathEditor;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2592266"></a><h3><a name="gimp-path-editor-new"></a>gimp_path_editor_new ()</h3><a class="indexterm" name="id2592274"></a><pre class="programlisting">GtkWidget* gimp_path_editor_new (const gchar *filesel_title,
const gchar *path);</pre><p>
Creates a new <a href="GimpPathEditor.html" title="GimpPathEditor"><span class="type">GimpPathEditor</span></a> widget.
</p><p>
The elements of the initial search path must be separated with the
<span class="type">G_SEARCHPATH_SEPARATOR</span> character.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filesel_title</tt></i> :</span></td><td> The title of the <span class="type">GtkFileSelection</span> dialog which can be
popped up by the attached <span class="type">GimpFileSelection</span>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>path</tt></i> :</span></td><td> The initial search path.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> A pointer to the new <a href="GimpPathEditor.html" title="GimpPathEditor"><span class="type">GimpPathEditor</span></a> widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592376"></a><h3><a name="gimp-path-editor-get-path"></a>gimp_path_editor_get_path ()</h3><a class="indexterm" name="id2592385"></a><pre class="programlisting">gchar* gimp_path_editor_get_path (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor);</pre><p>
The elements of the returned search path string are separated with the
<span class="type">G_SEARCHPATH_SEPARATOR</span> character.
</p><p>
Note that you have to <tt class="function">g_free()</tt> the returned string.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td> The path editor you want to get the search path from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> The search path the user has selected in the path editor.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592451"></a><h3><a name="gimp-path-editor-set-path"></a>gimp_path_editor_set_path ()</h3><a class="indexterm" name="id2592460"></a><pre class="programlisting">void gimp_path_editor_set_path (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *path);</pre><p>
The elements of the initial search path must be separated with the
<span class="type">G_SEARCHPATH_SEPARATOR</span> character.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td> The path editor you want to set the search path from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>path</tt></i> :</span></td><td> The new path to set.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588938"></a><h3><a name="gimp-path-editor-get-writable-path"></a>gimp_path_editor_get_writable_path ()</h3><a class="indexterm" name="id2588949"></a><pre class="programlisting">gchar* gimp_path_editor_get_writable_path
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588994"></a><h3><a name="gimp-path-editor-set-writable-path"></a>gimp_path_editor_set_writable_path ()</h3><a class="indexterm" name="id2589006"></a><pre class="programlisting">void gimp_path_editor_set_writable_path
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *path);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>path</tt></i> :</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589059"></a><h3><a name="gimp-path-editor-get-dir-writable"></a>gimp_path_editor_get_dir_writable ()</h3><a class="indexterm" name="id2589070"></a><pre class="programlisting">gboolean gimp_path_editor_get_dir_writable
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *directory);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>directory</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589132"></a><h3><a name="gimp-path-editor-set-dir-writable"></a>gimp_path_editor_set_dir_writable ()</h3><a class="indexterm" name="id2589144"></a><pre class="programlisting">void gimp_path_editor_set_dir_writable
(<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *editor,
const gchar *directory,
gboolean writable);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>editor</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>directory</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>writable</tt></i> :</span></td><td>
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2593769"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="id2593774"></a><h3><a name="GimpPathEditor-path-changed"></a>The "path-changed" signal</h3><pre class="programlisting">void user_function (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *,
gpointer user_data);</pre><p>
This signal is emitted whenever the user adds, deletes, modifies
or reorders an element of the search path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i> :</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2593824"></a><h3><a name="GimpPathEditor-writable-changed"></a>The "writable-changed" signal</h3><pre class="programlisting">void user_function (<a href="GimpPathEditor.html" title="GimpPathEditor">GimpPathEditor</a> *,
gpointer user_data);</pre><p>
This signal is emitted whenever the "writable" column of a directory
is changed, either by the user clicking on it or by calling
<a href="GimpPathEditor.html#gimp-path-editor-set-dir-writable"><tt class="function">gimp_path_editor_set_dir_writable()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i> :</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2593887"></a><h2>See Also</h2><p>
<a href="GimpFileEntry.html" title="GimpFileEntry"><span class="type">GimpFileEntry</span></a>
</p><p>
<span class="type">G_SEARCHPATH_SEPARATOR</span>
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="GimpOffsetArea.html"><b>&lt;&lt; GimpOffsetArea</b></a></td><td align="right"><a accesskey="n" href="GimpPickButton.html"><b>GimpPickButton &gt;&gt;</b></a></td></tr></table></body></html>