4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimpprogress</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
8
<link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images">
9
9
<link rel="prev" href="libgimp-gimpproceduraldb.html" title="gimpproceduraldb">
10
<link rel="next" href="libgimp-image.html" title="Manupulating Images and all their Properties">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
10
<link rel="next" href="libgimp-image.html" title="Manupulating Images and their Properties">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
52
void (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">*GimpProgressStartCallback</a>) (const gchar *message,
55
void (<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">*GimpProgressEndCallback</a>) (gpointer user_data);
56
void (<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">*GimpProgressTextCallback</a>) (const gchar *message,
58
void (<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">*GimpProgressValueCallback</a>) (gdouble percentage,
60
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-init">gimp_progress_init</a> (const gchar *message);
61
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-update">gimp_progress_update</a> (gdouble percentage);
62
const gchar* <a href="libgimp-gimpprogress.html#gimp-progress-install">gimp_progress_install</a> (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
63
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
64
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
65
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
67
gpointer <a href="libgimp-gimpprogress.html#gimp-progress-uninstall">gimp_progress_uninstall</a> (const gchar *progress_callback);
68
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-cancel">gimp_progress_cancel</a> (const gchar *progress_callback);
55
<a href="libgimp-gimpprogress.html#GimpProgressVtable">GimpProgressVtable</a>;
56
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-init">gimp_progress_init</a> (const gchar *message);
57
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-init-printf">gimp_progress_init_printf</a> (const gchar *format,
59
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-update">gimp_progress_update</a> (gdouble percentage);
60
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-pulse">gimp_progress_pulse</a> (void);
61
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-set-text">gimp_progress_set_text</a> (const gchar *message);
62
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-set-text-printf">gimp_progress_set_text_printf</a> (const gchar *format,
64
gpointer <a href="libgimp-gimpprogress.html#gimp-progress-uninstall">gimp_progress_uninstall</a> (const gchar *progress_callback);
65
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-cancel">gimp_progress_cancel</a> (const gchar *progress_callback);
66
gint <a href="libgimp-gimpprogress.html#gimp-progress-get-window-handle">gimp_progress_get_window_handle</a> (void);
67
void (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">*GimpProgressStartCallback</a>) (const gchar *message,
70
void (<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">*GimpProgressEndCallback</a>) (gpointer user_data);
71
void (<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">*GimpProgressTextCallback</a>) (const gchar *message,
73
void (<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">*GimpProgressValueCallback</a>) (gdouble percentage,
75
const gchar* <a href="libgimp-gimpprogress.html#gimp-progress-install-vtable">gimp_progress_install_vtable</a> (const <a href="libgimp-gimpprogress.html#GimpProgressVtable">GimpProgressVtable</a> *vtable,
77
const gchar* <a href="libgimp-gimpprogress.html#gimp-progress-install">gimp_progress_install</a> (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
78
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
79
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
80
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
71
84
<div class="refsect1" lang="en">
72
<a name="id2575763"></a><h2>Description</h2>
85
<a name="id2609859"></a><h2>Description</h2>
74
87
Functions for embedding the progress bar into a plug-in's GUI.
77
90
<div class="refsect1" lang="en">
78
<a name="id2575780"></a><h2>Details</h2>
79
<div class="refsect2" lang="en">
80
<a name="id2575791"></a><h3>
81
<a name="GimpProgressStartCallback"></a>GimpProgressStartCallback ()</h3>
82
<a class="indexterm" name="id2575802"></a><pre class="programlisting">void (*GimpProgressStartCallback) (const gchar *message,
84
gpointer user_data);</pre>
88
<div class="variablelist"><table border="0">
89
<col align="left" valign="top">
93
<span class="term"><em class="parameter"><code>message</code></em> :</span></td>
99
<span class="term"><em class="parameter"><code>cancelable</code></em> :</span></td>
105
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
115
<div class="refsect2" lang="en">
116
<a name="id2575890"></a><h3>
117
<a name="GimpProgressEndCallback"></a>GimpProgressEndCallback ()</h3>
118
<a class="indexterm" name="id2575901"></a><pre class="programlisting">void (*GimpProgressEndCallback) (gpointer user_data);</pre>
122
<div class="variablelist"><table border="0">
123
<col align="left" valign="top">
126
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
135
<div class="refsect2" lang="en">
136
<a name="id2575946"></a><h3>
137
<a name="GimpProgressTextCallback"></a>GimpProgressTextCallback ()</h3>
138
<a class="indexterm" name="id2575957"></a><pre class="programlisting">void (*GimpProgressTextCallback) (const gchar *message,
139
gpointer user_data);</pre>
143
<div class="variablelist"><table border="0">
144
<col align="left" valign="top">
148
<span class="term"><em class="parameter"><code>message</code></em> :</span></td>
154
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
164
<div class="refsect2" lang="en">
165
<a name="id2523190"></a><h3>
166
<a name="GimpProgressValueCallback"></a>GimpProgressValueCallback ()</h3>
167
<a class="indexterm" name="id2523202"></a><pre class="programlisting">void (*GimpProgressValueCallback) (gdouble percentage,
168
gpointer user_data);</pre>
172
<div class="variablelist"><table border="0">
173
<col align="left" valign="top">
177
<span class="term"><em class="parameter"><code>percentage</code></em> :</span></td>
183
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
193
<div class="refsect2" lang="en">
194
<a name="id2523268"></a><h3>
91
<a name="id2609875"></a><h2>Details</h2>
92
<div class="refsect2" lang="en">
93
<a name="id2609886"></a><h3>
94
<a name="GimpProgressVtable"></a>GimpProgressVtable</h3>
95
<a class="indexterm" name="id2609899"></a><pre class="programlisting">typedef struct {
96
void (* start) (const gchar *message,
99
void (* end) (gpointer user_data);
100
void (* set_text) (const gchar *message,
102
void (* set_value) (gdouble percentage,
104
void (* pulse) (gpointer user_data);
106
guint32 (* get_window) (gpointer user_data);
108
/* Padding for future expansion. Must be initialized with NULL! */
109
void (* _gimp_reserved1) (void);
110
void (* _gimp_reserved2) (void);
111
void (* _gimp_reserved3) (void);
112
void (* _gimp_reserved4) (void);
113
void (* _gimp_reserved5) (void);
114
void (* _gimp_reserved6) (void);
115
void (* _gimp_reserved7) (void);
116
void (* _gimp_reserved8) (void);
117
} GimpProgressVtable;
124
<div class="refsect2" lang="en">
125
<a name="id2609929"></a><h3>
195
126
<a name="gimp-progress-init"></a>gimp_progress_init ()</h3>
196
<a class="indexterm" name="id2523280"></a><pre class="programlisting">gboolean gimp_progress_init (const gchar *message);</pre>
127
<a class="indexterm" name="id2609942"></a><pre class="programlisting">gboolean gimp_progress_init (const gchar *message);</pre>
198
129
Initializes the progress bar for the current plug-in.
225
154
<div class="refsect2" lang="en">
226
<a name="id2523345"></a><h3>
155
<a name="id2610421"></a><h3>
156
<a name="gimp-progress-init-printf"></a>gimp_progress_init_printf ()</h3>
157
<a class="indexterm" name="id2610435"></a><pre class="programlisting">gboolean gimp_progress_init_printf (const gchar *format,
160
Initializes the progress bar for the current plug-in.
163
Initializes the progress bar for the current plug-in. It is only
164
valid to call this procedure from a plug-in.</p>
168
<div class="variablelist"><table border="0">
169
<col align="left" valign="top">
172
<td><span class="term"><em class="parameter"><code>format</code></em> :</span></td>
173
<td> a standard <code class="function">printf()</code> format string
177
<td><span class="term"><em class="parameter"><code>...</code></em> :</span></td>
178
<td> arguments for <em class="parameter"><code>format</code></em>
182
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
183
<td> <code class="literal">TRUE</code> on success.
189
<p class="since">Since GIMP 2.4
193
<div class="refsect2" lang="en">
194
<a name="id2610549"></a><h3>
227
195
<a name="gimp-progress-update"></a>gimp_progress_update ()</h3>
228
<a class="indexterm" name="id2523356"></a><pre class="programlisting">gboolean gimp_progress_update (gdouble percentage);</pre>
230
Updates the progress bar for the current plug-in.
196
<a class="indexterm" name="id2610560"></a><pre class="programlisting">gboolean gimp_progress_update (gdouble percentage);</pre>
198
Updates the progress bar for the current plug-in.</p>
202
<div class="variablelist"><table border="0">
203
<col align="left" valign="top">
206
<td><span class="term"><em class="parameter"><code>percentage</code></em> :</span></td>
207
<td> Percentage of progress completed (in the range from 0.0 to 1.0).
211
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
212
<td> TRUE on success.
219
<div class="refsect2" lang="en">
220
<a name="id2610622"></a><h3>
221
<a name="gimp-progress-pulse"></a>gimp_progress_pulse ()</h3>
222
<a class="indexterm" name="id2610636"></a><pre class="programlisting">gboolean gimp_progress_pulse (void);</pre>
224
Pulses the progress bar for the current plug-in.
233
227
Updates the progress bar for the current plug-in. It is only valid
234
to call this procedure from a plug-in.</p>
238
<div class="variablelist"><table border="0">
239
<col align="left" valign="top">
243
<span class="term"><em class="parameter"><code>percentage</code></em> :</span></td>
244
<td> Percentage of progress completed which must be between 0.0 and 1.0.
249
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
250
<td> TRUE on success.
257
<div class="refsect2" lang="en">
258
<a name="id2523423"></a><h3>
259
<a name="gimp-progress-install"></a>gimp_progress_install ()</h3>
260
<a class="indexterm" name="id2523436"></a><pre class="programlisting">const gchar* gimp_progress_install (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
261
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
262
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
263
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
264
gpointer user_data);</pre>
270
<div class="variablelist"><table border="0">
271
<col align="left" valign="top">
275
<span class="term"><em class="parameter"><code>start_callback</code></em> :</span></td>
276
<td> the function to call when progress starts
281
<span class="term"><em class="parameter"><code>end_callback</code></em> :</span></td>
282
<td> the function to call when progress finishes
287
<span class="term"><em class="parameter"><code>text_callback</code></em> :</span></td>
288
<td> the function to call to change the text
293
<span class="term"><em class="parameter"><code>value_callback</code></em> :</span></td>
294
<td> the function to call to change the value
299
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
300
<td> a pointer that is returned when uninstalling the progress
305
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
306
<td> the name of the temporary procedure that's been installed
316
<div class="refsect2" lang="en">
317
<a name="id2545274"></a><h3>
228
to call this procedure from a plug-in. Use this function instead of
229
<a href="libgimp-gimpprogress.html#gimp-progress-update"><code class="function">gimp_progress_update()</code></a> if you cannot tell how much progress has been
230
made. This usually causes the the progress bar to enter \"activity
231
mode\", where a block bounces back and forth.</p>
235
<div class="variablelist"><table border="0">
236
<col align="left" valign="top">
238
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
239
<td> TRUE on success.
244
<p class="since">Since GIMP 2.4
248
<div class="refsect2" lang="en">
249
<a name="id2610702"></a><h3>
250
<a name="gimp-progress-set-text"></a>gimp_progress_set_text ()</h3>
251
<a class="indexterm" name="id2610715"></a><pre class="programlisting">gboolean gimp_progress_set_text (const gchar *message);</pre>
253
Changes the text in the progress bar for the current plug-in.
256
This function allows to change the text in the progress bar for the
257
current plug-in. Unlike <a href="libgimp-gimpprogress.html#gimp-progress-init"><code class="function">gimp_progress_init()</code></a> it does not change the
262
<div class="variablelist"><table border="0">
263
<col align="left" valign="top">
266
<td><span class="term"><em class="parameter"><code>message</code></em> :</span></td>
267
<td> Message to use in the progress dialog.
271
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
272
<td> TRUE on success.
278
<p class="since">Since GIMP 2.4
282
<div class="refsect2" lang="en">
283
<a name="id2610797"></a><h3>
284
<a name="gimp-progress-set-text-printf"></a>gimp_progress_set_text_printf ()</h3>
285
<a class="indexterm" name="id2610811"></a><pre class="programlisting">gboolean gimp_progress_set_text_printf (const gchar *format,
288
Changes the text in the progress bar for the current plug-in.
291
This function allows to change the text in the progress bar for the
292
current plug-in. Unlike <a href="libgimp-gimpprogress.html#gimp-progress-init"><code class="function">gimp_progress_init()</code></a> it does not change the
297
<div class="variablelist"><table border="0">
298
<col align="left" valign="top">
301
<td><span class="term"><em class="parameter"><code>format</code></em> :</span></td>
302
<td> a standard <code class="function">printf()</code> format string
306
<td><span class="term"><em class="parameter"><code>...</code></em> :</span></td>
307
<td> arguments for <em class="parameter"><code>format</code></em>
311
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
312
<td> <code class="literal">TRUE</code> on success.
318
<p class="since">Since GIMP 2.4
322
<div class="refsect2" lang="en">
323
<a name="id2612865"></a><h3>
318
324
<a name="gimp-progress-uninstall"></a>gimp_progress_uninstall ()</h3>
319
<a class="indexterm" name="id2545287"></a><pre class="programlisting">gpointer gimp_progress_uninstall (const gchar *progress_callback);</pre>
325
<a class="indexterm" name="id2612877"></a><pre class="programlisting">gpointer gimp_progress_uninstall (const gchar *progress_callback);</pre>
321
327
Uninstalls a temporary progress procedure that was installed using
322
328
<a href="libgimp-gimpprogress.html#gimp-progress-install"><code class="function">gimp_progress_install()</code></a>.</p>
361
365
<col align="left" valign="top">
365
<span class="term"><em class="parameter"><code>progress_callback</code></em> :</span></td>
368
<td><span class="term"><em class="parameter"><code>progress_callback</code></em> :</span></td>
366
369
<td> The name of the callback registered for this progress.
371
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
373
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
372
374
<td> TRUE on success.
380
<p class="since">Since GIMP 2.2
384
<div class="refsect2" lang="en">
385
<a name="id2613038"></a><h3>
386
<a name="gimp-progress-get-window-handle"></a>gimp_progress_get_window_handle ()</h3>
387
<a class="indexterm" name="id2613051"></a><pre class="programlisting">gint gimp_progress_get_window_handle (void);</pre>
389
Returns the native window ID of the toplevel window this plug-in's
390
progress is displayed in.
393
This function returns the native window ID of the toplevel window
394
this plug-in\'s progress is displayed in.</p>
398
<div class="variablelist"><table border="0">
399
<col align="left" valign="top">
401
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
402
<td> The progress bar's toplevel window.
407
<p class="since">Since GIMP 2.2
411
<div class="refsect2" lang="en">
412
<a name="id2613100"></a><h3>
413
<a name="GimpProgressStartCallback"></a>GimpProgressStartCallback ()</h3>
414
<a class="indexterm" name="id2613112"></a><pre class="programlisting">void (*GimpProgressStartCallback) (const gchar *message,
416
gpointer user_data);</pre>
417
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
418
<h3 class="title">Warning</h3>
419
<p><code class="literal">GimpProgressStartCallback</code> is deprecated and should not be used in newly-written code.</p>
424
<div class="variablelist"><table border="0">
425
<col align="left" valign="top">
428
<td><span class="term"><em class="parameter"><code>message</code></em> :</span></td>
433
<td><span class="term"><em class="parameter"><code>cancelable</code></em> :</span></td>
438
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
448
<div class="refsect2" lang="en">
449
<a name="id2613203"></a><h3>
450
<a name="GimpProgressEndCallback"></a>GimpProgressEndCallback ()</h3>
451
<a class="indexterm" name="id2613215"></a><pre class="programlisting">void (*GimpProgressEndCallback) (gpointer user_data);</pre>
452
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
453
<h3 class="title">Warning</h3>
454
<p><code class="literal">GimpProgressEndCallback</code> is deprecated and should not be used in newly-written code.</p>
459
<div class="variablelist"><table border="0">
460
<col align="left" valign="top">
462
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
471
<div class="refsect2" lang="en">
472
<a name="id2613268"></a><h3>
473
<a name="GimpProgressTextCallback"></a>GimpProgressTextCallback ()</h3>
474
<a class="indexterm" name="id2613280"></a><pre class="programlisting">void (*GimpProgressTextCallback) (const gchar *message,
475
gpointer user_data);</pre>
476
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
477
<h3 class="title">Warning</h3>
478
<p><code class="literal">GimpProgressTextCallback</code> is deprecated and should not be used in newly-written code.</p>
483
<div class="variablelist"><table border="0">
484
<col align="left" valign="top">
487
<td><span class="term"><em class="parameter"><code>message</code></em> :</span></td>
492
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
502
<div class="refsect2" lang="en">
503
<a name="id2613352"></a><h3>
504
<a name="GimpProgressValueCallback"></a>GimpProgressValueCallback ()</h3>
505
<a class="indexterm" name="id2613364"></a><pre class="programlisting">void (*GimpProgressValueCallback) (gdouble percentage,
506
gpointer user_data);</pre>
507
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
508
<h3 class="title">Warning</h3>
509
<p><code class="literal">GimpProgressValueCallback</code> is deprecated and should not be used in newly-written code.</p>
514
<div class="variablelist"><table border="0">
515
<col align="left" valign="top">
518
<td><span class="term"><em class="parameter"><code>percentage</code></em> :</span></td>
523
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
533
<div class="refsect2" lang="en">
534
<a name="id2613436"></a><h3>
535
<a name="gimp-progress-install-vtable"></a>gimp_progress_install_vtable ()</h3>
536
<a class="indexterm" name="id2613448"></a><pre class="programlisting">const gchar* gimp_progress_install_vtable (const <a href="libgimp-gimpprogress.html#GimpProgressVtable">GimpProgressVtable</a> *vtable,
537
gpointer user_data);</pre>
543
<div class="variablelist"><table border="0">
544
<col align="left" valign="top">
547
<td><span class="term"><em class="parameter"><code>vtable</code></em> :</span></td>
548
<td> a pointer to a <em class="parameter"><code>GimpProgressVtable</code></em>.
552
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
553
<td> a pointer that is passed as user_data to all vtable functions.
557
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
558
<td> the name of the temporary procedure that's been installed
564
<p class="since">Since GIMP 2.4
568
<div class="refsect2" lang="en">
569
<a name="id2613535"></a><h3>
570
<a name="gimp-progress-install"></a>gimp_progress_install ()</h3>
571
<a class="indexterm" name="id2613548"></a><a class="indexterm" name="id2613555"></a><pre class="programlisting">const gchar* gimp_progress_install (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
572
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
573
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
574
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
575
gpointer user_data);</pre>
576
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
577
<h3 class="title">Warning</h3>
578
<p><code class="literal">gimp_progress_install</code> is deprecated and should not be used in newly-written code.</p>
585
<div class="variablelist"><table border="0">
586
<col align="left" valign="top">
589
<td><span class="term"><em class="parameter"><code>start_callback</code></em> :</span></td>
590
<td> the function to call when progress starts
594
<td><span class="term"><em class="parameter"><code>end_callback</code></em> :</span></td>
595
<td> the function to call when progress finishes
599
<td><span class="term"><em class="parameter"><code>text_callback</code></em> :</span></td>
600
<td> the function to call to change the text
604
<td><span class="term"><em class="parameter"><code>value_callback</code></em> :</span></td>
605
<td> the function to call to change the value
609
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
610
<td> a pointer that is returned when uninstalling the progress
614
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
615
<td> the name of the temporary procedure that's been installed
621
<p class="since">Since GIMP 2.2
623
Note that since GIMP 2.4, @value_callback can be called with
624
negative values. This is triggered by calls to gimp_progress_pulse().
625
The callback should then implement a progress indicating business,
626
e.g. by calling gtk_progress_bar_pulse().