57
57
<a name="GimpPaletteSelectButton.synopsis"></a><h2>Synopsis</h2>
58
58
<pre class="synopsis">
59
59
<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton-struct" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a>;
60
GtkWidget* <a class="link" href="GimpPaletteSelectButton.html#gimp-palette-select-button-new" title="gimp_palette_select_button_new ()">gimp_palette_select_button_new</a> (const gchar *title,
61
const gchar *palette_name);
62
const gchar* <a class="link" href="GimpPaletteSelectButton.html#gimp-palette-select-button-get-palette" title="gimp_palette_select_button_get_palette ()">gimp_palette_select_button_get_palette</a>
61
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
62
>GtkWidget</a>* <a class="link" href="GimpPaletteSelectButton.html#gimp-palette-select-button-new" title="gimp_palette_select_button_new ()">gimp_palette_select_button_new</a> (const <a
63
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
66
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67
>gchar</a> *palette_name);
69
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
70
>gchar</a>* <a class="link" href="GimpPaletteSelectButton.html#gimp-palette-select-button-get-palette" title="gimp_palette_select_button_get_palette ()">gimp_palette_select_button_get_palette</a>
63
71
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button);
64
72
void <a class="link" href="GimpPaletteSelectButton.html#gimp-palette-select-button-set-palette" title="gimp_palette_select_button_set_palette ()">gimp_palette_select_button_set_palette</a>
65
73
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button,
66
const gchar *palette_name);
75
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
76
>gchar</a> *palette_name);
69
79
<div class="refsect1" lang="en">
70
80
<a name="GimpPaletteSelectButton.object-hierarchy"></a><h2>Object Hierarchy</h2>
71
81
<pre class="synopsis">
73
+----GInitiallyUnowned
83
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
86
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
87
>GInitiallyUnowned</a>
89
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
92
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
95
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
98
href="/usr/share/gtk-doc/html/gtk/GtkBox.html"
101
href="/usr/share/gtk-doc/html/gtk/GtkHBox.html"
79
103
+----<a class="link" href="GimpSelectButton.html" title="GimpSelectButton">GimpSelectButton</a>
80
104
+----GimpPaletteSelectButton
84
108
<a name="GimpPaletteSelectButton.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
86
110
GimpPaletteSelectButton implements
87
AtkImplementorIface and GtkBuildable.</p>
111
AtkImplementorIface and <a
112
href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable"
113
>GtkBuildable</a>.</p>
89
115
<div class="refsect1" lang="en">
90
116
<a name="GimpPaletteSelectButton.properties"></a><h2>Properties</h2>
91
117
<pre class="synopsis">
92
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--palette-name" title='The "palette-name" property'>palette-name</a>" gchar* : Read / Write
93
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--title" title='The "title" property'>title</a>" gchar* : Read / Write / Construct Only
118
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--palette-name" title='The "palette-name" property'>palette-name</a>" <a
119
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
120
>gchar</a>* : Read / Write
121
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--title" title='The "title" property'>title</a>" <a
122
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
123
>gchar</a>* : Read / Write / Construct Only
96
126
<div class="refsect1" lang="en">
118
148
<div class="refsect2" lang="en">
119
149
<a name="gimp-palette-select-button-new"></a><h3>gimp_palette_select_button_new ()</h3>
120
<pre class="programlisting">GtkWidget* gimp_palette_select_button_new (const gchar *title,
121
const gchar *palette_name);</pre>
150
<pre class="programlisting"><a
151
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
152
>GtkWidget</a>* gimp_palette_select_button_new (const <a
153
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
156
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
157
>gchar</a> *palette_name);</pre>
123
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
160
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
161
><span class="type">GtkWidget</span></a> that completely controls the selection of
124
162
a palette. This widget is suitable for placement in a table in a
125
163
plug-in dialog.</p>
133
171
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
134
<td> Title of the dialog to use or <code class="literal">NULL</code> to use the default title.
172
<td> Title of the dialog to use or <a
173
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
174
><code class="literal">NULL</code></a> to use the default title.
143
183
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
144
<td> A <span class="type">GtkWidget</span> that you can use in your UI.
185
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
186
><span class="type">GtkWidget</span></a> that you can use in your UI.
154
196
<div class="refsect2" lang="en">
155
197
<a name="gimp-palette-select-button-get-palette"></a><h3>gimp_palette_select_button_get_palette ()</h3>
156
<pre class="programlisting">const gchar* gimp_palette_select_button_get_palette
198
<pre class="programlisting">const <a
199
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
200
>gchar</a>* gimp_palette_select_button_get_palette
157
201
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button);</pre>
159
203
Retrieves the name of currently selected palette.</p>
184
228
<a name="gimp-palette-select-button-set-palette"></a><h3>gimp_palette_select_button_set_palette ()</h3>
185
229
<pre class="programlisting">void gimp_palette_select_button_set_palette
186
230
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button,
187
const gchar *palette_name);</pre>
232
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
233
>gchar</a> *palette_name);</pre>
189
235
Sets the current palette for the palette select button.</p>
202
248
<td><p><span class="term"><em class="parameter"><code>palette_name</code></em> :</span></p></td>
203
<td> Palette name to set; <code class="literal">NULL</code> means no change.
249
<td> Palette name to set; <a
250
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
251
><code class="literal">NULL</code></a> means no change.
213
261
<a name="GimpPaletteSelectButton.property-details"></a><h2>Property Details</h2>
214
262
<div class="refsect2" lang="en">
215
263
<a name="GimpPaletteSelectButton--palette-name"></a><h3>The <code class="literal">"palette-name"</code> property</h3>
216
<pre class="programlisting"> "palette-name" gchar* : Read / Write</pre>
264
<pre class="programlisting"> "palette-name" <a
265
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
266
>gchar</a>* : Read / Write</pre>
218
268
The name of the currently selected palette.</p>
227
277
<div class="refsect2" lang="en">
228
278
<a name="GimpPaletteSelectButton--title"></a><h3>The <code class="literal">"title"</code> property</h3>
229
<pre class="programlisting"> "title" gchar* : Read / Write / Construct Only</pre>
279
<pre class="programlisting"> "title" <a
280
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
281
>gchar</a>* : Read / Write / Construct Only</pre>
231
283
The title to be used for the palette selection popup dialog.</p>
242
294
<div class="refsect2" lang="en">
243
295
<a name="GimpPaletteSelectButton-palette-set"></a><h3>The <code class="literal">"palette-set"</code> signal</h3>
244
296
<pre class="programlisting">void user_function (<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *widget,
246
gboolean dialog_closing,
247
gpointer user_data) : Run First</pre>
298
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
299
>gchar</a> *palette_name,
301
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
302
>gboolean</a> dialog_closing,
304
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
305
>gpointer</a> user_data) : Run First</pre>
249
307
The ::palette-set signal is emitted when the user selects a palette.</p>