7
8
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
8
9
<link rel="prev" href="GimpDialog.html" title="GimpDialog">
9
10
<link rel="next" href="GimpFrame.html" title="GimpFrame">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
11
12
<link rel="stylesheet" href="style.css" type="text/css">
12
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
13
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
19
20
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part VI. Deprecated API">
21
22
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
23
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
23
25
<td><a accesskey="p" href="GimpDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
24
26
<td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
25
27
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
26
28
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
27
29
<td><a accesskey="n" href="GimpFrame.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
33
<a href="#desc" class="shortcut">Description</a>
35
<a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
37
<a href="#signal_proto" class="shortcut">Signals</a></nobr></td></tr>
29
39
<div class="refentry" lang="en">
30
40
<a name="GimpFileEntry"></a><div class="titlepage"></div>
31
41
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle">GimpFileEntry</span></h2>
43
<h2><span class="refentrytitle"><a name="top_of_page"></a>GimpFileEntry</span></h2>
34
44
<p>GimpFileEntry — Widget for entering a filename.</p>
36
46
<td valign="top" align="right"></td>
37
47
</tr></table></div>
38
48
<div class="refsynopsisdiv">
49
<a name="synopsis"></a><h2>Synopsis</h2>
40
50
<pre class="synopsis">
44
54
<a href="GimpFileEntry.html#GimpFileEntry-struct">GimpFileEntry</a>;
46
href="../gtk/GtkWidget.html"
47
>GtkWidget</a>* <a href="GimpFileEntry.html#gimp-file-entry-new">gimp_file_entry_new</a> (const gchar *title,
55
GtkWidget* <a href="GimpFileEntry.html#gimp-file-entry-new">gimp_file_entry_new</a> (const gchar *title,
48
56
const gchar *filename,
50
58
gboolean check_valid);
57
65
<div class="refsect1" lang="en">
58
<a name="id2561187"></a><h2>Object Hierarchy</h2>
66
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
59
67
<pre class="synopsis">
63
href="../gtk/GtkObject.html"
66
href="../gtk/GtkWidget.html"
69
href="../gtk/GtkContainer.html"
72
href="../gtk/GtkBox.html"
75
href="../gtk/GtkHBox.html"
70
+----GInitiallyUnowned
80
79
<div class="refsect1" lang="en">
81
<a name="id2552420"></a><h2>Implemented Interfaces</h2>
80
<a name="impl_interfaces"></a><h2>Implemented Interfaces</h2>
83
82
GimpFileEntry implements
84
83
AtkImplementorIface.</p>
86
85
<div class="refsect1" lang="en">
87
<a name="id2552437"></a><h2>Signal Prototypes</h2>
86
<a name="signal_proto"></a><h2>Signals</h2>
88
87
<pre class="synopsis">
90
89
"<a href="GimpFileEntry.html#GimpFileEntry-filename-changed">filename-changed</a>"
91
90
void user_function (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *arg0,
91
gpointer user_data) : Run first
95
94
<div class="refsect1" lang="en">
96
<a name="id2552476"></a><h2>Description</h2>
95
<a name="desc"></a><h2>Description</h2>
98
97
This widget is used to enter filenames or directories.
102
href="../gtk/GtkEntry.html"
103
><span class="type">GtkEntry</span></a> for entering the filename manually and a "..."
104
button which will pop up a <a
105
href="../gtk/GtkFileSelection.html"
106
><span class="type">GtkFileSelection</span></a> dialog.
100
There is a <span class="type">GtkEntry</span> for entering the filename manually and a "..."
101
button which will pop up a <span class="type">GtkFileSelection</span> dialog.
109
104
You can restrict the <span class="type">GimpFileSelection</span> to directories. In this case
110
the filename listbox of the <a
111
href="../gtk/GtkFileSelection.html"
112
><span class="type">GtkFileSelection</span></a> dialog will be hidden.
105
the filename listbox of the <span class="type">GtkFileSelection</span> dialog will be hidden.
115
108
If you specify <em class="parameter"><code>check_valid</code></em> as <span class="type">TRUE</span> in <a href="GimpFileEntry.html#gimp-file-entry-new"><code class="function">gimp_file_entry_new()</code></a>
124
117
<div class="refsect1" lang="en">
125
<a name="id2518281"></a><h2>Details</h2>
118
<a name="details"></a><h2>Details</h2>
126
119
<div class="refsect2" lang="en">
127
<a name="id2518287"></a><h3>
120
<a name="id2564773"></a><h3>
128
121
<a name="GimpFileEntry-struct"></a>GimpFileEntry</h3>
129
<a class="indexterm" name="id2518297"></a><pre class="programlisting">typedef struct _GimpFileEntry GimpFileEntry;</pre>
122
<a class="indexterm" name="id2564784"></a><pre class="programlisting">typedef struct _GimpFileEntry GimpFileEntry;</pre>
135
128
<div class="refsect2" lang="en">
136
<a name="id2518313"></a><h3>
129
<a name="id2563294"></a><h3>
137
130
<a name="gimp-file-entry-new"></a>gimp_file_entry_new ()</h3>
138
<a class="indexterm" name="id2518323"></a><pre class="programlisting"><a
139
href="../gtk/GtkWidget.html"
140
>GtkWidget</a>* gimp_file_entry_new (const gchar *title,
131
<a class="indexterm" name="id2563307"></a><pre class="programlisting">GtkWidget* gimp_file_entry_new (const gchar *title,
141
132
const gchar *filename,
142
133
gboolean dir_only,
143
134
gboolean check_valid);</pre>
187
178
<div class="refsect2" lang="en">
188
<a name="id2559697"></a><h3>
179
<a name="id2563472"></a><h3>
189
180
<a name="gimp-file-entry-get-filename"></a>gimp_file_entry_get_filename ()</h3>
190
<a class="indexterm" name="id2559706"></a><pre class="programlisting">gchar* gimp_file_entry_get_filename (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *entry);</pre>
181
<a class="indexterm" name="id2563483"></a><pre class="programlisting">gchar* gimp_file_entry_get_filename (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *entry);</pre>
192
183
Note that you have to <code class="function">g_free()</code> the returned string.</p>
215
206
<div class="refsect2" lang="en">
216
<a name="id2559776"></a><h3>
207
<a name="id2570407"></a><h3>
217
208
<a name="gimp-file-entry-set-filename"></a>gimp_file_entry_set_filename ()</h3>
218
<a class="indexterm" name="id2559787"></a><pre class="programlisting">void gimp_file_entry_set_filename (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *entry,
209
<a class="indexterm" name="id2570420"></a><pre class="programlisting">void gimp_file_entry_set_filename (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *entry,
219
210
const gchar *filename);</pre>
221
212
If you specified <em class="parameter"><code>check_valid</code></em> as <code class="literal">TRUE</code> in <a href="GimpFileEntry.html#gimp-file-entry-new"><code class="function">gimp_file_entry_new()</code></a>
246
237
<div class="refsect1" lang="en">
247
<a name="id2518826"></a><h2>Signals</h2>
238
<a name="signals"></a><h2>Signal Details</h2>
248
239
<div class="refsect2" lang="en">
249
<a name="id2518832"></a><h3>
240
<a name="id2570537"></a><h3>
250
241
<a name="GimpFileEntry-filename-changed"></a>The "filename-changed" signal</h3>
251
<pre class="programlisting">void user_function (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *arg0,
252
gpointer user_data);</pre>
242
<a class="indexterm" name="id2570546"></a><pre class="programlisting">void user_function (<a href="GimpFileEntry.html" title="GimpFileEntry">GimpFileEntry</a> *arg0,
243
gpointer user_data) : Run first</pre>
254
245
This signal is emitted whenever the user changes the filename.</p>
268
259
<div class="refsect1" lang="en">
269
<a name="id2518895"></a><h2>See Also</h2>
260
<a name="id2570606"></a><h2>See Also</h2>
271
262
<a href="GimpPathEditor.html" title="GimpPathEditor"><span class="type">GimpPathEditor</span></a>
275
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
276
<td align="left"><a accesskey="p" href="GimpDialog.html"><b><< GimpDialog</b></a></td>
277
<td align="right"><a accesskey="n" href="GimpFrame.html"><b>GimpFrame >></b></a></td>