~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimpwidgets/html/libgimpwidgets-GimpHelpUI.html

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
Import upstream version 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
<div class="refnamediv"><table width="100%"><tr>
43
43
<td valign="top">
44
44
<h2><span class="refentrytitle"><a name="libgimpwidgets-GimpHelpUI.top_of_page"></a>GimpHelpUI</span></h2>
45
 
<p>GimpHelpUI — Functions for setting <a
46
 
href="/usr/share/gtk-doc/html/gtk/GtkTooltips.html"
47
 
><span class="type">GtkTooltips</span></a> and help identifier used by GIMP help
 
45
<p>GimpHelpUI — Functions for setting <span class="type">GtkTooltips</span> and help identifier used by GIMP help
48
46
system.</p>
49
47
</td>
50
48
<td valign="top" align="right"></td>
52
50
<div class="refsynopsisdiv">
53
51
<a name="libgimpwidgets-GimpHelpUI.synopsis"></a><h2>Synopsis</h2>
54
52
<pre class="synopsis">
55
 
void                (<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">*GimpHelpFunc</a>)                     (const <a
56
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
57
 
>gchar</a> *help_id,
58
 
                                                         <a
59
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
60
 
>gpointer</a> help_data);
 
53
void                (<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">*GimpHelpFunc</a>)                     (const gchar *help_id,
 
54
                                                         gpointer help_data);
61
55
#define             <a class="link" href="libgimpwidgets-GimpHelpUI.html#GIMP-HELP-ID:CAPS" title="GIMP_HELP_ID">GIMP_HELP_ID</a>
62
56
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-enable-tooltips" title="gimp_help_enable_tooltips ()">gimp_help_enable_tooltips</a>           (void);
63
57
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-disable-tooltips" title="gimp_help_disable_tooltips ()">gimp_help_disable_tooltips</a>          (void);
64
 
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-standard-help-func" title="gimp_standard_help_func ()">gimp_standard_help_func</a>             (const <a
65
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
66
 
>gchar</a> *help_id,
67
 
                                                         <a
68
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
69
 
>gpointer</a> help_data);
70
 
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-connect" title="gimp_help_connect ()">gimp_help_connect</a>                   (<a
71
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
72
 
>GtkWidget</a> *widget,
 
58
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-standard-help-func" title="gimp_standard_help_func ()">gimp_standard_help_func</a>             (const gchar *help_id,
 
59
                                                         gpointer help_data);
 
60
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-connect" title="gimp_help_connect ()">gimp_help_connect</a>                   (GtkWidget *widget,
73
61
                                                         <a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
74
 
                                                         const <a
75
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
76
 
>gchar</a> *help_id,
77
 
                                                         <a
78
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
79
 
>gpointer</a> help_data);
80
 
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-set-help-data" title="gimp_help_set_help_data ()">gimp_help_set_help_data</a>             (<a
81
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
82
 
>GtkWidget</a> *widget,
83
 
                                                         const <a
84
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
85
 
>gchar</a> *tooltip,
86
 
                                                         const <a
87
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
88
 
>gchar</a> *help_id);
89
 
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-context-help" title="gimp_context_help ()">gimp_context_help</a>                   (<a
90
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
91
 
>GtkWidget</a> *widget);
 
62
                                                         const gchar *help_id,
 
63
                                                         gpointer help_data);
 
64
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-set-help-data" title="gimp_help_set_help_data ()">gimp_help_set_help_data</a>             (GtkWidget *widget,
 
65
                                                         const gchar *tooltip,
 
66
                                                         const gchar *help_id);
 
67
void                <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-context-help" title="gimp_context_help ()">gimp_context_help</a>                   (GtkWidget *widget);
92
68
</pre>
93
69
</div>
94
70
<div class="refsect1" lang="en">
101
77
<a name="libgimpwidgets-GimpHelpUI.details"></a><h2>Details</h2>
102
78
<div class="refsect2" lang="en">
103
79
<a name="GimpHelpFunc"></a><h3>GimpHelpFunc ()</h3>
104
 
<pre class="programlisting">void                (*GimpHelpFunc)                     (const <a
105
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
106
 
>gchar</a> *help_id,
107
 
                                                         <a
108
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
109
 
>gpointer</a> help_data);</pre>
 
80
<pre class="programlisting">void                (*GimpHelpFunc)                     (const gchar *help_id,
 
81
                                                         gpointer help_data);</pre>
110
82
<p>
111
83
This is the prototype for all functions you pass as <em class="parameter"><code>help_func</code></em> to the
112
84
various GIMP dialog constructors like <a class="link" href="GimpDialog.html#gimp-dialog-new" title="gimp_dialog_new ()"><code class="function">gimp_dialog_new()</code></a>,
121
93
</p>
122
94
<p>
123
95
In most cases it will be ok to use <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-standard-help-func" title="gimp_standard_help_func ()"><code class="function">gimp_standard_help_func()</code></a> which does
124
 
nothing but passing the <em class="parameter"><code>help_id</code></em> string to <a
125
 
href="/usr/share/gtk-doc/html/libgimp/libgimp-gimphelp.html#gimp-help"
126
 
><code class="function">gimp_help()</code></a>. If your
 
96
nothing but passing the <em class="parameter"><code>help_id</code></em> string to <code class="function">gimp_help()</code>. If your
127
97
plug-in needs some more sophisticated help handling you can provide
128
 
your own <em class="parameter"><code>help_func</code></em> which has to call <a
129
 
href="/usr/share/gtk-doc/html/libgimp/libgimp-gimphelp.html#gimp-help"
130
 
><code class="function">gimp_help()</code></a> to actually display
 
98
your own <em class="parameter"><code>help_func</code></em> which has to call <code class="function">gimp_help()</code> to actually display
131
99
the help.
132
100
</p>
133
101
<div class="variablelist"><table border="0">
162
130
<a name="gimp-help-enable-tooltips"></a><h3>gimp_help_enable_tooltips ()</h3>
163
131
<pre class="programlisting">void                gimp_help_enable_tooltips           (void);</pre>
164
132
<p>
165
 
This function calls <a
166
 
href="/usr/share/gtk-doc/html/gtk/GtkTooltips.html#gtk-tooltips-enable"
167
 
><code class="function">gtk_tooltips_enable()</code></a>.</p>
 
133
This function calls <code class="function">gtk_tooltips_enable()</code>.</p>
168
134
<p>
169
135
 
170
136
</p>
174
140
<a name="gimp-help-disable-tooltips"></a><h3>gimp_help_disable_tooltips ()</h3>
175
141
<pre class="programlisting">void                gimp_help_disable_tooltips          (void);</pre>
176
142
<p>
177
 
This function calls <a
178
 
href="/usr/share/gtk-doc/html/gtk/GtkTooltips.html#gtk-tooltips-disable"
179
 
><code class="function">gtk_tooltips_disable()</code></a>.</p>
 
143
This function calls <code class="function">gtk_tooltips_disable()</code>.</p>
180
144
<p>
181
145
 
182
146
</p>
184
148
<hr>
185
149
<div class="refsect2" lang="en">
186
150
<a name="gimp-standard-help-func"></a><h3>gimp_standard_help_func ()</h3>
187
 
<pre class="programlisting">void                gimp_standard_help_func             (const <a
188
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
189
 
>gchar</a> *help_id,
190
 
                                                         <a
191
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
192
 
>gpointer</a> help_data);</pre>
 
151
<pre class="programlisting">void                gimp_standard_help_func             (const gchar *help_id,
 
152
                                                         gpointer help_data);</pre>
193
153
<p>
194
154
This is the standard GIMP help function which does nothing but calling
195
 
<a
196
 
href="/usr/share/gtk-doc/html/libgimp/libgimp-gimphelp.html#gimp-help"
197
 
><code class="function">gimp_help()</code></a>. It is the right function to use in almost all cases.</p>
 
155
<code class="function">gimp_help()</code>. It is the right function to use in almost all cases.</p>
198
156
<p>
199
157
 
200
158
</p>
217
175
<hr>
218
176
<div class="refsect2" lang="en">
219
177
<a name="gimp-help-connect"></a><h3>gimp_help_connect ()</h3>
220
 
<pre class="programlisting">void                gimp_help_connect                   (<a
221
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
222
 
>GtkWidget</a> *widget,
 
178
<pre class="programlisting">void                gimp_help_connect                   (GtkWidget *widget,
223
179
                                                         <a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
224
 
                                                         const <a
225
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
226
 
>gchar</a> *help_id,
227
 
                                                         <a
228
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
229
 
>gpointer</a> help_data);</pre>
 
180
                                                         const gchar *help_id,
 
181
                                                         gpointer help_data);</pre>
230
182
<p>
231
183
Note that this function is automatically called by all libgimp dialog
232
184
constructors. You only have to call it for windows/dialogs you created
240
192
<tr>
241
193
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
242
194
<td> The widget you want to connect the help accelerator for. Will
243
 
         be a <a
244
 
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
245
 
><span class="type">GtkWindow</span></a> in most cases.
 
195
         be a <span class="type">GtkWindow</span> in most cases.
246
196
</td>
247
197
</tr>
248
198
<tr>
266
216
<hr>
267
217
<div class="refsect2" lang="en">
268
218
<a name="gimp-help-set-help-data"></a><h3>gimp_help_set_help_data ()</h3>
269
 
<pre class="programlisting">void                gimp_help_set_help_data             (<a
270
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
271
 
>GtkWidget</a> *widget,
272
 
                                                         const <a
273
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
274
 
>gchar</a> *tooltip,
275
 
                                                         const <a
276
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
277
 
>gchar</a> *help_id);</pre>
 
219
<pre class="programlisting">void                gimp_help_set_help_data             (GtkWidget *widget,
 
220
                                                         const gchar *tooltip,
 
221
                                                         const gchar *help_id);</pre>
278
222
<p>
279
 
The reason why we don't use <a
280
 
href="/usr/share/gtk-doc/html/gtk/GtkTooltips.html#gtk-tooltips-set-tip"
281
 
><code class="function">gtk_tooltips_set_tip()</code></a> is that it's
 
223
The reason why we don't use <code class="function">gtk_tooltips_set_tip()</code> is that it's
282
224
impossible to set a <em class="parameter"><code>private_tip</code></em> (aka <em class="parameter"><code>help_id</code></em>) without a visible
283
225
<em class="parameter"><code>tooltip</code></em>.
284
226
</p>
285
227
<p>
286
 
This function can be called with <a
287
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
288
 
><span class="type">NULL</span></a> for <em class="parameter"><code>tooltip</code></em>. Use this feature
 
228
This function can be called with <span class="type">NULL</span> for <em class="parameter"><code>tooltip</code></em>. Use this feature
289
229
if you want to set a help link for a widget which shouldn't have
290
230
a visible tooltip.</p>
291
231
<p>
296
236
<tbody>
297
237
<tr>
298
238
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
299
 
<td>  The <a
300
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
301
 
><span class="type">GtkWidget</span></a> you want to set a <em class="parameter"><code>tooltip</code></em> and/or <em class="parameter"><code>help_id</code></em> for.
 
239
<td>  The <span class="type">GtkWidget</span> you want to set a <em class="parameter"><code>tooltip</code></em> and/or <em class="parameter"><code>help_id</code></em> for.
302
240
</td>
303
241
</tr>
304
242
<tr>
305
243
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
306
 
<td> The text for this widget's tooltip (or <a
307
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
308
 
><code class="literal">NULL</code></a>).
 
244
<td> The text for this widget's tooltip (or <code class="literal">NULL</code>).
309
245
</td>
310
246
</tr>
311
247
<tr>
312
248
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
313
 
<td> The <em class="parameter"><code>help_id</code></em> for the <a
314
 
href="/usr/share/gtk-doc/html/gtk/GtkTipsQuery.html"
315
 
><span class="type">GtkTipsQuery</span></a> tooltips inspector.
 
249
<td> The <em class="parameter"><code>help_id</code></em> for the <span class="type">GtkTipsQuery</span> tooltips inspector.
316
250
</td>
317
251
</tr>
318
252
</tbody>
321
255
<hr>
322
256
<div class="refsect2" lang="en">
323
257
<a name="gimp-context-help"></a><h3>gimp_context_help ()</h3>
324
 
<pre class="programlisting">void                gimp_context_help                   (<a
325
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
326
 
>GtkWidget</a> *widget);</pre>
 
258
<pre class="programlisting">void                gimp_context_help                   (GtkWidget *widget);</pre>
327
259
<p>
328
260
This function invokes the context help inspector.
329
261
</p>
344
276
<col align="left" valign="top">
345
277
<tbody><tr>
346
278
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
347
 
<td> Any <a
348
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
349
 
><span class="type">GtkWidget</span></a> on the screen.
 
279
<td> Any <span class="type">GtkWidget</span> on the screen.
350
280
</td>
351
281
</tr></tbody>
352
282
</table></div>