56
56
<a name="GimpColorProfileComboBox.synopsis"></a><h2>Synopsis</h2>
57
57
<pre class="synopsis">
58
58
<a class="link" href="GimpColorProfileComboBox.html#GimpColorProfileComboBox-struct" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a>;
60
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
61
>GtkWidget</a>* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-new" title="gimp_color_profile_combo_box_new ()">gimp_color_profile_combo_box_new</a> (<a
62
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
63
>GtkWidget</a> *dialog,
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
68
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
69
>GtkWidget</a>* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-new-with-model" title="gimp_color_profile_combo_box_new_with_model ()">gimp_color_profile_combo_box_new_with_model</a>
71
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
72
>GtkWidget</a> *dialog,
74
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html"
75
>GtkTreeModel</a> *model);
59
GtkWidget* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-new" title="gimp_color_profile_combo_box_new ()">gimp_color_profile_combo_box_new</a> (GtkWidget *dialog,
60
const gchar *history);
61
GtkWidget* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-new-with-model" title="gimp_color_profile_combo_box_new_with_model ()">gimp_color_profile_combo_box_new_with_model</a>
76
64
void <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-add" title="gimp_color_profile_combo_box_add ()">gimp_color_profile_combo_box_add</a> (<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo,
78
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
81
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
65
const gchar *filename,
83
67
void <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-set-active" title="gimp_color_profile_combo_box_set_active ()">gimp_color_profile_combo_box_set_active</a>
84
68
(<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo,
86
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
89
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
92
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
93
>gchar</a>* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-get-active" title="gimp_color_profile_combo_box_get_active ()">gimp_color_profile_combo_box_get_active</a>
69
const gchar *filename,
71
gchar* <a class="link" href="GimpColorProfileComboBox.html#gimp-color-profile-combo-box-get-active" title="gimp_color_profile_combo_box_get_active ()">gimp_color_profile_combo_box_get_active</a>
94
72
(<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo);
97
75
<div class="refsect1" lang="en">
98
76
<a name="GimpColorProfileComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
99
77
<pre class="synopsis">
101
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
104
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
105
>GInitiallyUnowned</a>
107
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
110
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
113
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
116
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
119
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
79
+----GInitiallyUnowned
121
85
+----GimpColorProfileComboBox
125
89
<a name="GimpColorProfileComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
127
91
GimpColorProfileComboBox implements
128
AtkImplementorIface, GtkBuildable, <a
129
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
130
>GtkCellEditable</a> and <a
131
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
132
>GtkCellLayout</a>.</p>
92
AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.</p>
134
94
<div class="refsect1" lang="en">
135
95
<a name="GimpColorProfileComboBox.properties"></a><h2>Properties</h2>
136
96
<pre class="synopsis">
137
"<a class="link" href="GimpColorProfileComboBox.html#GimpColorProfileComboBox--dialog" title='The "dialog" property'>dialog</a>" <a
138
href="/usr/share/gtk-doc/html/gtk/GtkDialog.html"
139
>GtkDialog</a>* : Read / Write / Construct Only
97
"<a class="link" href="GimpColorProfileComboBox.html#GimpColorProfileComboBox--dialog" title='The "dialog" property'>dialog</a>" GtkDialog* : Read / Write / Construct Only
140
98
"<a class="link" href="GimpColorProfileComboBox.html#GimpColorProfileComboBox--model" title='The "model" property'>model</a>" <a class="link" href="GimpColorProfileStore.html" title="GimpColorProfileStore">GimpColorProfileStore</a>* : Read / Write
159
117
<div class="refsect2" lang="en">
160
118
<a name="gimp-color-profile-combo-box-new"></a><h3>gimp_color_profile_combo_box_new ()</h3>
161
<pre class="programlisting"><a
162
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
163
>GtkWidget</a>* gimp_color_profile_combo_box_new (<a
164
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
165
>GtkWidget</a> *dialog,
167
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
168
>gchar</a> *history);</pre>
119
<pre class="programlisting">GtkWidget* gimp_color_profile_combo_box_new (GtkWidget *dialog,
120
const gchar *history);</pre>
170
122
Create a combo-box widget for selecting color profiles. The combo-box
171
123
is populated from the file specified as <em class="parameter"><code>history</code></em>. This filename is
184
136
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
186
href="/usr/share/gtk-doc/html/gtk/GtkDialog.html"
187
><span class="type">GtkDialog</span></a> to present when the user selects the
137
<td> a <span class="type">GtkDialog</span> to present when the user selects the
188
138
"Select color profile from disk..." item
192
142
<td><p><span class="term"><em class="parameter"><code>history</code></em> :</span></p></td>
193
<td> filename of the profilerc (or <a
194
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
195
><code class="literal">NULL</code></a> for no history)
143
<td> filename of the profilerc (or <code class="literal">NULL</code> for no history)
210
158
<div class="refsect2" lang="en">
211
159
<a name="gimp-color-profile-combo-box-new-with-model"></a><h3>gimp_color_profile_combo_box_new_with_model ()</h3>
212
<pre class="programlisting"><a
213
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
214
>GtkWidget</a>* gimp_color_profile_combo_box_new_with_model
216
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
217
>GtkWidget</a> *dialog,
219
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html"
220
>GtkTreeModel</a> *model);</pre>
160
<pre class="programlisting">GtkWidget* gimp_color_profile_combo_box_new_with_model
162
GtkTreeModel *model);</pre>
222
164
This constructor is useful when you want to create several
223
165
combo-boxes for profile selection that all share the same
236
178
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
238
href="/usr/share/gtk-doc/html/gtk/GtkDialog.html"
239
><span class="type">GtkDialog</span></a> to present when the user selects the
179
<td> a <span class="type">GtkDialog</span> to present when the user selects the
240
180
"Select color profile from disk..." item
260
200
<div class="refsect2" lang="en">
261
201
<a name="gimp-color-profile-combo-box-add"></a><h3>gimp_color_profile_combo_box_add ()</h3>
262
202
<pre class="programlisting">void gimp_color_profile_combo_box_add (<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo,
264
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
265
>gchar</a> *filename,
267
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
268
>gchar</a> *label);</pre>
203
const gchar *filename,
204
const gchar *label);</pre>
270
206
This function delegates to the underlying
271
207
<a class="link" href="GimpColorProfileStore.html" title="GimpColorProfileStore"><span class="type">GimpColorProfileStore</span></a>. Please refer to the documentation of
285
221
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
286
<td> filename of the profile to add (or <a
287
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
288
><code class="literal">NULL</code></a>)
222
<td> filename of the profile to add (or <code class="literal">NULL</code>)
292
226
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
293
227
<td> label to use for the profile
295
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
296
><code class="literal">NULL</code></a> if <em class="parameter"><code>filename</code></em> is <a
297
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
298
><code class="literal">NULL</code></a>)
228
(may only be <code class="literal">NULL</code> if <em class="parameter"><code>filename</code></em> is <code class="literal">NULL</code>)
308
238
<a name="gimp-color-profile-combo-box-set-active"></a><h3>gimp_color_profile_combo_box_set_active ()</h3>
309
239
<pre class="programlisting">void gimp_color_profile_combo_box_set_active
310
240
(<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo,
312
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
313
>gchar</a> *filename,
315
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
316
>gchar</a> *label);</pre>
241
const gchar *filename,
242
const gchar *label);</pre>
318
244
Selects a color profile from the <em class="parameter"><code>combo</code></em> and makes it the active
319
245
item. If the profile is not listed in the <em class="parameter"><code>combo</code></em>, then it is added
320
with the given <em class="parameter"><code>label</code></em> (or <em class="parameter"><code>filename</code></em> in case that <em class="parameter"><code>label</code></em> is <a
321
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
322
><code class="literal">NULL</code></a>).</p>
246
with the given <em class="parameter"><code>label</code></em> (or <em class="parameter"><code>filename</code></em> in case that <em class="parameter"><code>label</code></em> is <code class="literal">NULL</code>).</p>
340
264
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
341
<td> label to use when adding a new entry (can be <a
342
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
343
><code class="literal">NULL</code></a>)
265
<td> label to use when adding a new entry (can be <code class="literal">NULL</code>)
352
274
<div class="refsect2" lang="en">
353
275
<a name="gimp-color-profile-combo-box-get-active"></a><h3>gimp_color_profile_combo_box_get_active ()</h3>
354
<pre class="programlisting"><a
355
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
356
>gchar</a>* gimp_color_profile_combo_box_get_active
276
<pre class="programlisting">gchar* gimp_color_profile_combo_box_get_active
357
277
(<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox">GimpColorProfileComboBox</a> *combo);</pre>
372
292
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
373
293
<td> The filename of the currently selected color profile.
374
294
This is a newly allocated string and should be released
376
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
377
><code class="function">g_free()</code></a> when it is not any longer needed.
295
using <code class="function">g_free()</code> when it is not any longer needed.
388
306
<a name="GimpColorProfileComboBox.property-details"></a><h2>Property Details</h2>
389
307
<div class="refsect2" lang="en">
390
308
<a name="GimpColorProfileComboBox--dialog"></a><h3>The <code class="literal">"dialog"</code> property</h3>
391
<pre class="programlisting"> "dialog" <a
392
href="/usr/share/gtk-doc/html/gtk/GtkDialog.html"
393
>GtkDialog</a>* : Read / Write / Construct Only</pre>
309
<pre class="programlisting"> "dialog" GtkDialog* : Read / Write / Construct Only</pre>
396
href="/usr/share/gtk-doc/html/gtk/GtkDialog.html"
397
><span class="type">GtkDialog</span></a> to present when the user selects the
311
<span class="type">GtkDialog</span> to present when the user selects the
398
312
"Select color profile from disk..." item.</p>
407
321
<a name="GimpColorProfileComboBox--model"></a><h3>The <code class="literal">"model"</code> property</h3>
408
322
<pre class="programlisting"> "model" <a class="link" href="GimpColorProfileStore.html" title="GimpColorProfileStore">GimpColorProfileStore</a>* : Read / Write</pre>
410
Overrides the "model" property of the <a
411
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
412
><span class="type">GtkComboBox</span></a> class.
324
Overrides the "model" property of the <span class="type">GtkComboBox</span> class.
413
325
<a class="link" href="GimpColorProfileComboBox.html" title="GimpColorProfileComboBox"><span class="type">GimpColorProfileComboBox</span></a> requires the model to be a
414
326
<a class="link" href="GimpColorProfileStore.html" title="GimpColorProfileStore"><span class="type">GimpColorProfileStore</span></a>.</p>