56
56
<a name="GimpGradientSelectButton.synopsis"></a><h2>Synopsis</h2>
57
57
<pre class="synopsis">
58
58
<a class="link" href="GimpGradientSelectButton.html#GimpGradientSelectButton-struct" title="GimpGradientSelectButton">GimpGradientSelectButton</a>;
60
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
61
>GtkWidget</a>* <a class="link" href="GimpGradientSelectButton.html#gimp-gradient-select-button-new" title="gimp_gradient_select_button_new ()">gimp_gradient_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> *gradient_name);
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
69
>gchar</a>* <a class="link" href="GimpGradientSelectButton.html#gimp-gradient-select-button-get-gradient" title="gimp_gradient_select_button_get_gradient ()">gimp_gradient_select_button_get_gradient</a>
59
GtkWidget* <a class="link" href="GimpGradientSelectButton.html#gimp-gradient-select-button-new" title="gimp_gradient_select_button_new ()">gimp_gradient_select_button_new</a> (const gchar *title,
60
const gchar *gradient_name);
61
const gchar* <a class="link" href="GimpGradientSelectButton.html#gimp-gradient-select-button-get-gradient" title="gimp_gradient_select_button_get_gradient ()">gimp_gradient_select_button_get_gradient</a>
70
62
(<a class="link" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">GimpGradientSelectButton</a> *button);
71
63
void <a class="link" href="GimpGradientSelectButton.html#gimp-gradient-select-button-set-gradient" title="gimp_gradient_select_button_set_gradient ()">gimp_gradient_select_button_set_gradient</a>
72
64
(<a class="link" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">GimpGradientSelectButton</a> *button,
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
75
>gchar</a> *gradient_name);
65
const gchar *gradient_name);
78
68
<div class="refsect1" lang="en">
79
69
<a name="GimpGradientSelectButton.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
+----GimpGradientSelectButton
112
88
<div class="refsect1" lang="en">
113
89
<a name="GimpGradientSelectButton.properties"></a><h2>Properties</h2>
114
90
<pre class="synopsis">
115
"<a class="link" href="GimpGradientSelectButton.html#GimpGradientSelectButton--gradient-name" title='The "gradient-name" property'>gradient-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="GimpGradientSelectButton.html#GimpGradientSelectButton--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="GimpGradientSelectButton.html#GimpGradientSelectButton--gradient-name" title='The "gradient-name" property'>gradient-name</a>" gchar* : Read / Write
92
"<a class="link" href="GimpGradientSelectButton.html#GimpGradientSelectButton--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-gradient-select-button-new"></a><h3>gimp_gradient_select_button_new ()</h3>
147
<pre class="programlisting"><a
148
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
149
>GtkWidget</a>* gimp_gradient_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> *gradient_name);</pre>
119
<pre class="programlisting">GtkWidget* gimp_gradient_select_button_new (const gchar *title,
120
const gchar *gradient_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 gradient. 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-gradient-select-button-get-gradient"></a><h3>gimp_gradient_select_button_get_gradient ()</h3>
195
<pre class="programlisting">const <a
196
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
197
>gchar</a>* gimp_gradient_select_button_get_gradient
155
<pre class="programlisting">const gchar* gimp_gradient_select_button_get_gradient
198
156
(<a class="link" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">GimpGradientSelectButton</a> *button);</pre>
200
158
Retrieves the name of currently selected gradient.</p>
225
183
<a name="gimp-gradient-select-button-set-gradient"></a><h3>gimp_gradient_select_button_set_gradient ()</h3>
226
184
<pre class="programlisting">void gimp_gradient_select_button_set_gradient
227
185
(<a class="link" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">GimpGradientSelectButton</a> *button,
229
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
230
>gchar</a> *gradient_name);</pre>
186
const gchar *gradient_name);</pre>
232
188
Sets the current gradient for the gradient select button.</p>
256
212
<a name="GimpGradientSelectButton.property-details"></a><h2>Property Details</h2>
257
213
<div class="refsect2" lang="en">
258
214
<a name="GimpGradientSelectButton--gradient-name"></a><h3>The <code class="literal">"gradient-name"</code> property</h3>
259
<pre class="programlisting"> "gradient-name" <a
260
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
261
>gchar</a>* : Read / Write</pre>
215
<pre class="programlisting"> "gradient-name" gchar* : Read / Write</pre>
263
217
The name of the currently selected gradient.</p>
272
226
<div class="refsect2" lang="en">
273
227
<a name="GimpGradientSelectButton--title"></a><h3>The <code class="literal">"title"</code> property</h3>
274
<pre class="programlisting"> "title" <a
275
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
276
>gchar</a>* : Read / Write / Construct Only</pre>
228
<pre class="programlisting"> "title" gchar* : Read / Write / Construct Only</pre>
278
230
The title to be used for the gradient selection popup dialog.</p>
289
241
<div class="refsect2" lang="en">
290
242
<a name="GimpGradientSelectButton-gradient-set"></a><h3>The <code class="literal">"gradient-set"</code> signal</h3>
291
243
<pre class="programlisting">void user_function (<a class="link" href="GimpGradientSelectButton.html" title="GimpGradientSelectButton">GimpGradientSelectButton</a> *widget,
293
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
294
>gchar</a> *gradient_name,
296
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
299
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
300
>gpointer</a> grad_data,
302
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
303
>gboolean</a> dialog_closing,
305
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
306
>gpointer</a> user_data) : Run First</pre>
244
gchar *gradient_name,
247
gboolean dialog_closing,
248
gpointer user_data) : Run First</pre>
308
250
The ::gradient-set signal is emitted when the user selects a gradient.</p>