1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
5
<refentry id="GimpColorProfileComboBox">
7
<refentrytitle role="top_of_page" id="GimpColorProfileComboBox.top_of_page">GimpColorProfileComboBox</refentrytitle>
8
<manvolnum>3</manvolnum>
9
<refmiscinfo>LIBGIMPWIDGETS Library</refmiscinfo>
13
<refname>GimpColorProfileComboBox</refname>
14
<refpurpose></refpurpose>
17
<refsynopsisdiv id="GimpColorProfileComboBox.synopsis" role="synopsis">
18
<title role="synopsis.title">Synopsis</title>
21
<link linkend="GimpColorProfileComboBox-struct">GimpColorProfileComboBox</link>;
22
<link linkend="GtkWidget">GtkWidget</link> * <link linkend="gimp-color-profile-combo-box-new">gimp_color_profile_combo_box_new</link> (<link linkend="GtkWidget">GtkWidget</link> *dialog,
23
const <link linkend="gchar">gchar</link> *history);
24
<link linkend="GtkWidget">GtkWidget</link> * <link linkend="gimp-color-profile-combo-box-new-with-model">gimp_color_profile_combo_box_new_with_model</link>
25
(<link linkend="GtkWidget">GtkWidget</link> *dialog,
26
<link linkend="GtkTreeModel">GtkTreeModel</link> *model);
27
<link linkend="void">void</link> <link linkend="gimp-color-profile-combo-box-add">gimp_color_profile_combo_box_add</link> (<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo,
28
const <link linkend="gchar">gchar</link> *filename,
29
const <link linkend="gchar">gchar</link> *label);
30
<link linkend="void">void</link> <link linkend="gimp-color-profile-combo-box-set-active">gimp_color_profile_combo_box_set_active</link>
31
(<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo,
32
const <link linkend="gchar">gchar</link> *filename,
33
const <link linkend="gchar">gchar</link> *label);
34
<link linkend="gchar">gchar</link> * <link linkend="gimp-color-profile-combo-box-get-active">gimp_color_profile_combo_box_get_active</link>
35
(<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo);
39
<refsect1 id="GimpColorProfileComboBox.object-hierarchy" role="object_hierarchy">
40
<title role="object_hierarchy.title">Object Hierarchy</title>
42
<link linkend="GObject">GObject</link>
43
+----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
44
+----<link linkend="GtkObject">GtkObject</link>
45
+----<link linkend="GtkWidget">GtkWidget</link>
46
+----<link linkend="GtkContainer">GtkContainer</link>
47
+----<link linkend="GtkBin">GtkBin</link>
48
+----<link linkend="GtkComboBox">GtkComboBox</link>
49
+----GimpColorProfileComboBox
55
<refsect1 id="GimpColorProfileComboBox.implemented-interfaces" role="impl_interfaces">
56
<title role="impl_interfaces.title">Implemented Interfaces</title>
58
GimpColorProfileComboBox implements
59
<link linkend="GtkBuildable">GtkBuildable</link>, <link linkend="AtkImplementorIface">AtkImplementorIface</link>, <link linkend="GtkCellEditable">GtkCellEditable</link> and <link linkend="GtkCellLayout">GtkCellLayout</link>.</para>
63
<refsect1 id="GimpColorProfileComboBox.properties" role="properties">
64
<title role="properties.title">Properties</title>
66
"<link linkend="GimpColorProfileComboBox--dialog">dialog</link>" <link linkend="GtkDialog">GtkDialog</link>* : Read / Write / Construct Only
67
"<link linkend="GimpColorProfileComboBox--model">model</link>" <link linkend="GimpColorProfileStore">GimpColorProfileStore</link>* : Read / Write
73
<refsect1 id="GimpColorProfileComboBox.description" role="desc">
74
<title role="desc.title">Description</title>
79
<refsect1 id="GimpColorProfileComboBox.details" role="details">
80
<title role="details.title">Details</title>
81
<refsect2 id="GimpColorProfileComboBox-struct" role="struct">
82
<title>GimpColorProfileComboBox</title>
83
<indexterm zone="GimpColorProfileComboBox-struct"><primary sortas="GimpColorProfileComboBox">GimpColorProfileComboBox</primary></indexterm><programlisting>typedef struct _GimpColorProfileComboBox GimpColorProfileComboBox;</programlisting>
86
<refsect2 id="gimp-color-profile-combo-box-new" role="function" condition="since:GIMP 2.4">
87
<title>gimp_color_profile_combo_box_new ()</title>
88
<indexterm zone="gimp-color-profile-combo-box-new" role="GIMP 2.4"><primary sortas="gimp_color_profile_combo_box_new">gimp_color_profile_combo_box_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> * gimp_color_profile_combo_box_new (<link linkend="GtkWidget">GtkWidget</link> *dialog,
89
const <link linkend="gchar">gchar</link> *history);</programlisting>
91
Create a combo-box widget for selecting color profiles. The combo-box
92
is populated from the file specified as <parameter>history</parameter>. This filename is
93
typically created using the following code snippet:
94
<informalexample><programlisting>
95
gchar *history = gimp_personal_rc_file ("profilerc");
96
</programlisting></informalexample></para>
98
</para><variablelist role="params">
99
<varlistentry><term><parameter>dialog</parameter> :</term>
100
<listitem><simpara> a <link linkend="GtkDialog"><type>GtkDialog</type></link> to present when the user selects the
101
"Select color profile from disk..." item
102
</simpara></listitem></varlistentry>
103
<varlistentry><term><parameter>history</parameter> :</term>
104
<listitem><simpara> filename of the profilerc (or <link linkend="NULL--CAPS"><literal>NULL</literal></link> for no history)
105
</simpara></listitem></varlistentry>
106
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link>.
108
</simpara></listitem></varlistentry>
109
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
110
<refsect2 id="gimp-color-profile-combo-box-new-with-model" role="function" condition="since:GIMP 2.4">
111
<title>gimp_color_profile_combo_box_new_with_model ()</title>
112
<indexterm zone="gimp-color-profile-combo-box-new-with-model" role="GIMP 2.4"><primary sortas="gimp_color_profile_combo_box_new_with_model">gimp_color_profile_combo_box_new_with_model</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> * gimp_color_profile_combo_box_new_with_model
113
(<link linkend="GtkWidget">GtkWidget</link> *dialog,
114
<link linkend="GtkTreeModel">GtkTreeModel</link> *model);</programlisting>
116
This constructor is useful when you want to create several
117
combo-boxes for profile selection that all share the same
118
<link linkend="GimpColorProfileStore"><type>GimpColorProfileStore</type></link>. This is for example done in the
119
GIMP Preferences dialog.
122
See also <link linkend="gimp-color-profile-combo-box-new"><function>gimp_color_profile_combo_box_new()</function></link>.</para>
124
</para><variablelist role="params">
125
<varlistentry><term><parameter>dialog</parameter> :</term>
126
<listitem><simpara> a <link linkend="GtkDialog"><type>GtkDialog</type></link> to present when the user selects the
127
"Select color profile from disk..." item
128
</simpara></listitem></varlistentry>
129
<varlistentry><term><parameter>model</parameter> :</term>
130
<listitem><simpara> a <link linkend="GimpColorProfileStore"><type>GimpColorProfileStore</type></link> object
131
</simpara></listitem></varlistentry>
132
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link>.
134
</simpara></listitem></varlistentry>
135
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
136
<refsect2 id="gimp-color-profile-combo-box-add" role="function" condition="since:GIMP 2.4">
137
<title>gimp_color_profile_combo_box_add ()</title>
138
<indexterm zone="gimp-color-profile-combo-box-add" role="GIMP 2.4"><primary sortas="gimp_color_profile_combo_box_add">gimp_color_profile_combo_box_add</primary></indexterm><programlisting><link linkend="void">void</link> gimp_color_profile_combo_box_add (<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo,
139
const <link linkend="gchar">gchar</link> *filename,
140
const <link linkend="gchar">gchar</link> *label);</programlisting>
142
This function delegates to the underlying
143
<link linkend="GimpColorProfileStore"><type>GimpColorProfileStore</type></link>. Please refer to the documentation of
144
<link linkend="gimp-color-profile-store-add"><function>gimp_color_profile_store_add()</function></link> for details.</para>
146
</para><variablelist role="params">
147
<varlistentry><term><parameter>combo</parameter> :</term>
148
<listitem><simpara> a <link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link>
149
</simpara></listitem></varlistentry>
150
<varlistentry><term><parameter>filename</parameter> :</term>
151
<listitem><simpara> filename of the profile to add (or <link linkend="NULL--CAPS"><literal>NULL</literal></link>)
152
</simpara></listitem></varlistentry>
153
<varlistentry><term><parameter>label</parameter> :</term>
154
<listitem><simpara> label to use for the profile
155
(may only be <link linkend="NULL--CAPS"><literal>NULL</literal></link> if <parameter>filename</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>)
156
</simpara></listitem></varlistentry>
157
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
158
<refsect2 id="gimp-color-profile-combo-box-set-active" role="function" condition="since:GIMP 2.4">
159
<title>gimp_color_profile_combo_box_set_active ()</title>
160
<indexterm zone="gimp-color-profile-combo-box-set-active" role="GIMP 2.4"><primary sortas="gimp_color_profile_combo_box_set_active">gimp_color_profile_combo_box_set_active</primary></indexterm><programlisting><link linkend="void">void</link> gimp_color_profile_combo_box_set_active
161
(<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo,
162
const <link linkend="gchar">gchar</link> *filename,
163
const <link linkend="gchar">gchar</link> *label);</programlisting>
165
Selects a color profile from the <parameter>combo</parameter> and makes it the active
166
item. If the profile is not listed in the <parameter>combo</parameter>, then it is added
167
with the given <parameter>label</parameter> (or <parameter>filename</parameter> in case that <parameter>label</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>).</para>
169
</para><variablelist role="params">
170
<varlistentry><term><parameter>combo</parameter> :</term>
171
<listitem><simpara> a <link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link>
172
</simpara></listitem></varlistentry>
173
<varlistentry><term><parameter>filename</parameter> :</term>
174
<listitem><simpara> filename of the profile to select
175
</simpara></listitem></varlistentry>
176
<varlistentry><term><parameter>label</parameter> :</term>
177
<listitem><simpara> label to use when adding a new entry (can be <link linkend="NULL--CAPS"><literal>NULL</literal></link>)
178
</simpara></listitem></varlistentry>
179
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
180
<refsect2 id="gimp-color-profile-combo-box-get-active" role="function" condition="since:GIMP 2.4">
181
<title>gimp_color_profile_combo_box_get_active ()</title>
182
<indexterm zone="gimp-color-profile-combo-box-get-active" role="GIMP 2.4"><primary sortas="gimp_color_profile_combo_box_get_active">gimp_color_profile_combo_box_get_active</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * gimp_color_profile_combo_box_get_active
183
(<link linkend="GimpColorProfileComboBox">GimpColorProfileComboBox</link> *combo);</programlisting>
187
</para><variablelist role="params">
188
<varlistentry><term><parameter>combo</parameter> :</term>
189
<listitem><simpara> a <link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link>
190
</simpara></listitem></varlistentry>
191
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The filename of the currently selected color profile.
192
This is a newly allocated string and should be released
193
using <link linkend="g-free"><function>g_free()</function></link> when it is not any longer needed.
195
</simpara></listitem></varlistentry>
196
</variablelist><para role="since">Since GIMP 2.4</para></refsect2>
199
<refsect1 id="GimpColorProfileComboBox.property-details" role="property_details">
200
<title role="property_details.title">Property Details</title>
201
<refsect2 id="GimpColorProfileComboBox--dialog" role="property"><title>The <literal>"dialog"</literal> property</title>
202
<indexterm zone="GimpColorProfileComboBox--dialog" role="GIMP 2.4"><primary sortas="GimpColorProfileComboBox:dialog">GimpColorProfileComboBox:dialog</primary></indexterm><programlisting> "dialog" <link linkend="GtkDialog">GtkDialog</link>* : Read / Write / Construct Only</programlisting>
204
<link linkend="GtkDialog"><type>GtkDialog</type></link> to present when the user selects the
205
"Select color profile from disk..." item.</para>
207
</para><para>Since GIMP 2.4</para>
209
<refsect2 id="GimpColorProfileComboBox--model" role="property"><title>The <literal>"model"</literal> property</title>
210
<indexterm zone="GimpColorProfileComboBox--model" role="GIMP 2.4"><primary sortas="GimpColorProfileComboBox:model">GimpColorProfileComboBox:model</primary></indexterm><programlisting> "model" <link linkend="GimpColorProfileStore">GimpColorProfileStore</link>* : Read / Write</programlisting>
212
Overrides the "model" property of the <link linkend="GtkComboBox"><type>GtkComboBox</type></link> class.
213
<link linkend="GimpColorProfileComboBox"><type>GimpColorProfileComboBox</type></link> requires the model to be a
214
<link linkend="GimpColorProfileStore"><type>GimpColorProfileStore</type></link>.</para>
216
</para><para>Since GIMP 2.4</para>