56
56
<a name="GimpPaletteSelectButton.synopsis"></a><h2>Synopsis</h2>
57
57
<pre class="synopsis">
58
58
<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton-struct" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a>;
60
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
61
>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
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
66
>gchar</a> *palette_name);
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
69
>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>
59
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,
60
const gchar *palette_name);
61
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>
70
62
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button);
71
63
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>
72
64
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button,
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
75
>gchar</a> *palette_name);
65
const gchar *palette_name);
78
68
<div class="refsect1" lang="en">
79
69
<a name="GimpPaletteSelectButton.object-hierarchy"></a><h2>Object Hierarchy</h2>
80
70
<pre class="synopsis">
82
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
85
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
86
>GInitiallyUnowned</a>
88
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
91
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
94
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
97
href="/usr/share/gtk-doc/html/gtk/GtkBox.html"
100
href="/usr/share/gtk-doc/html/gtk/GtkHBox.html"
72
+----GInitiallyUnowned
102
78
+----<a class="link" href="GimpSelectButton.html" title="GimpSelectButton">GimpSelectButton</a>
103
79
+----GimpPaletteSelectButton
112
88
<div class="refsect1" lang="en">
113
89
<a name="GimpPaletteSelectButton.properties"></a><h2>Properties</h2>
114
90
<pre class="synopsis">
115
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--palette-name" title='The "palette-name" property'>palette-name</a>" <a
116
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
117
>gchar</a>* : Read / Write
118
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--title" title='The "title" property'>title</a>" <a
119
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
120
>gchar</a>* : Read / Write / Construct Only
91
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--palette-name" title='The "palette-name" property'>palette-name</a>" gchar* : Read / Write
92
"<a class="link" href="GimpPaletteSelectButton.html#GimpPaletteSelectButton--title" title='The "title" property'>title</a>" gchar* : Read / Write / Construct Only
123
95
<div class="refsect1" lang="en">
145
117
<div class="refsect2" lang="en">
146
118
<a name="gimp-palette-select-button-new"></a><h3>gimp_palette_select_button_new ()</h3>
147
<pre class="programlisting"><a
148
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
149
>GtkWidget</a>* gimp_palette_select_button_new (const <a
150
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
153
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
154
>gchar</a> *palette_name);</pre>
119
<pre class="programlisting">GtkWidget* gimp_palette_select_button_new (const gchar *title,
120
const gchar *palette_name);</pre>
157
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
158
><span class="type">GtkWidget</span></a> that completely controls the selection of
122
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
159
123
a palette. This widget is suitable for placement in a table in a
160
124
plug-in dialog.</p>
168
132
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
169
<td> Title of the dialog to use or <a
170
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
171
><code class="literal">NULL</code></a> to use the default title.
133
<td> Title of the dialog to use or <code class="literal">NULL</code> to use the default title.
180
142
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
182
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
183
><span class="type">GtkWidget</span></a> that you can use in your UI.
143
<td> A <span class="type">GtkWidget</span> that you can use in your UI.
193
153
<div class="refsect2" lang="en">
194
154
<a name="gimp-palette-select-button-get-palette"></a><h3>gimp_palette_select_button_get_palette ()</h3>
195
<pre class="programlisting">const <a
196
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
197
>gchar</a>* gimp_palette_select_button_get_palette
155
<pre class="programlisting">const gchar* gimp_palette_select_button_get_palette
198
156
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button);</pre>
200
158
Retrieves the name of currently selected palette.</p>
225
183
<a name="gimp-palette-select-button-set-palette"></a><h3>gimp_palette_select_button_set_palette ()</h3>
226
184
<pre class="programlisting">void gimp_palette_select_button_set_palette
227
185
(<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *button,
229
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
230
>gchar</a> *palette_name);</pre>
186
const gchar *palette_name);</pre>
232
188
Sets the current palette for the palette select button.</p>
245
201
<td><p><span class="term"><em class="parameter"><code>palette_name</code></em> :</span></p></td>
246
<td> Palette name to set; <a
247
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
248
><code class="literal">NULL</code></a> means no change.
202
<td> Palette name to set; <code class="literal">NULL</code> means no change.
258
212
<a name="GimpPaletteSelectButton.property-details"></a><h2>Property Details</h2>
259
213
<div class="refsect2" lang="en">
260
214
<a name="GimpPaletteSelectButton--palette-name"></a><h3>The <code class="literal">"palette-name"</code> property</h3>
261
<pre class="programlisting"> "palette-name" <a
262
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
263
>gchar</a>* : Read / Write</pre>
215
<pre class="programlisting"> "palette-name" gchar* : Read / Write</pre>
265
217
The name of the currently selected palette.</p>
274
226
<div class="refsect2" lang="en">
275
227
<a name="GimpPaletteSelectButton--title"></a><h3>The <code class="literal">"title"</code> property</h3>
276
<pre class="programlisting"> "title" <a
277
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
278
>gchar</a>* : Read / Write / Construct Only</pre>
228
<pre class="programlisting"> "title" gchar* : Read / Write / Construct Only</pre>
280
230
The title to be used for the palette selection popup dialog.</p>
291
241
<div class="refsect2" lang="en">
292
242
<a name="GimpPaletteSelectButton-palette-set"></a><h3>The <code class="literal">"palette-set"</code> signal</h3>
293
243
<pre class="programlisting">void user_function (<a class="link" href="GimpPaletteSelectButton.html" title="GimpPaletteSelectButton">GimpPaletteSelectButton</a> *widget,
295
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
296
>gchar</a> *palette_name,
298
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
299
>gboolean</a> dialog_closing,
301
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
302
>gpointer</a> user_data) : Run First</pre>
245
gboolean dialog_closing,
246
gpointer user_data) : Run First</pre>
304
248
The ::palette-set signal is emitted when the user selects a palette.</p>