4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpHelpUI</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="GIMP Widgets Library Reference Manual">
8
8
<link rel="up" href="libgimpwidgets-utils.html" title="Part V. GIMP Widgets Utilities">
9
9
<link rel="prev" href="libgimpwidgets-GimpCairoUtils.html" title="gimpcairo-utils">
10
10
<link rel="next" href="libgimpwidgets-GimpQueryBox.html" title="GimpQueryBox">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
14
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
34
34
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
35
35
<td><a accesskey="n" href="libgimpwidgets-GimpQueryBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
37
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpwidgets-GimpHelpUI.synopsis" class="shortcut">Top</a>
39
<a href="#libgimpwidgets-GimpHelpUI.description" class="shortcut">Description</a></nobr></td></tr>
37
<tr><td colspan="5" class="shortcuts">
38
<a href="#libgimpwidgets-GimpHelpUI.synopsis" class="shortcut">Top</a>
40
<a href="#libgimpwidgets-GimpHelpUI.description" class="shortcut">Description</a>
41
<div class="refentry" lang="en">
43
<div class="refentry" title="GimpHelpUI">
42
44
<a name="libgimpwidgets-GimpHelpUI"></a><div class="titlepage"></div>
43
45
<div class="refnamediv"><table width="100%"><tr>
45
47
<h2><span class="refentrytitle"><a name="libgimpwidgets-GimpHelpUI.top_of_page"></a>GimpHelpUI</span></h2>
46
48
<p>GimpHelpUI — Functions for setting <a
47
href="/usr/share/gtk-doc/html/gtk/GtkTooltips.html"
49
href="http://library.gnome.org/devel/gtk/unstable/GtkTooltips.html"
48
50
><span class="type">GtkTooltips</span></a> and help identifier used by GIMP help
51
53
<td valign="top" align="right"></td>
52
54
</tr></table></div>
53
<div class="refsynopsisdiv">
55
<div class="refsynopsisdiv" title="Synopsis">
54
56
<a name="libgimpwidgets-GimpHelpUI.synopsis"></a><h2>Synopsis</h2>
55
57
<pre class="synopsis">
56
58
void (<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">*GimpHelpFunc</a>) (const <a
60
62
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
61
63
>gpointer</a> help_data);
62
#define <a class="link" href="libgimpwidgets-GimpHelpUI.html#GIMP-HELP-ID:CAPS" title="GIMP_HELP_ID">GIMP_HELP_ID</a>
64
#define <a class="link" href="libgimpwidgets-GimpHelpUI.html#GIMP-HELP-ID--CAPS" title="GIMP_HELP_ID">GIMP_HELP_ID</a>
63
65
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-enable-tooltips" title="gimp_help_enable_tooltips ()">gimp_help_enable_tooltips</a> (void);
64
66
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-disable-tooltips" title="gimp_help_disable_tooltips ()">gimp_help_disable_tooltips</a> (void);
65
67
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-standard-help-func" title="gimp_standard_help_func ()">gimp_standard_help_func</a> (const <a
69
71
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
70
72
>gpointer</a> help_data);
71
73
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-connect" title="gimp_help_connect ()">gimp_help_connect</a> (<a
72
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
74
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
73
75
>GtkWidget</a> *widget,
74
76
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
79
81
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
80
82
>gpointer</a> help_data);
81
83
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
82
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
84
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
83
85
>GtkWidget</a> *widget,
85
87
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
88
90
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
89
91
>gchar</a> *help_id);
90
92
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-set-help-data-with-markup" title="gimp_help_set_help_data_with_markup ()">gimp_help_set_help_data_with_markup</a> (<a
91
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
93
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
92
94
>GtkWidget</a> *widget,
94
96
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
97
99
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
98
100
>gchar</a> *help_id);
99
101
void <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-context-help" title="gimp_context_help ()">gimp_context_help</a> (<a
100
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
102
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
101
103
>GtkWidget</a> *widget);
104
<div class="refsect1" lang="en">
106
<div class="refsect1" title="Description">
105
107
<a name="libgimpwidgets-GimpHelpUI.description"></a><h2>Description</h2>
110
<div class="refsect1" lang="en">
111
<div class="refsect1" title="Details">
111
112
<a name="libgimpwidgets-GimpHelpUI.details"></a><h2>Details</h2>
112
<div class="refsect2" lang="en">
113
<div class="refsect2" title="GimpHelpFunc ()">
113
114
<a name="GimpHelpFunc"></a><h3>GimpHelpFunc ()</h3>
114
115
<pre class="programlisting">void (*GimpHelpFunc) (const <a
115
116
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
152
153
<td><p><span class="term"><em class="parameter"><code>help_data</code></em> :</span></p></td>
162
<div class="refsect2" lang="en">
163
<a name="GIMP-HELP-ID:CAPS"></a><h3>GIMP_HELP_ID</h3>
161
<div class="refsect2" title="GIMP_HELP_ID">
162
<a name="GIMP-HELP-ID--CAPS"></a><h3>GIMP_HELP_ID</h3>
164
163
<pre class="programlisting">#define GIMP_HELP_ID (gimp_help_id_quark ())
171
<div class="refsect2" lang="en">
170
<div class="refsect2" title="gimp_help_enable_tooltips ()">
172
171
<a name="gimp-help-enable-tooltips"></a><h3>gimp_help_enable_tooltips ()</h3>
173
172
<pre class="programlisting">void gimp_help_enable_tooltips (void);</pre>
182
181
the user setting from the GIMP preferences dialog is respected in
183
182
all plug-in dialogs.</p>
189
<div class="refsect2" lang="en">
187
<div class="refsect2" title="gimp_help_disable_tooltips ()">
190
188
<a name="gimp-help-disable-tooltips"></a><h3>gimp_help_disable_tooltips ()</h3>
191
189
<pre class="programlisting">void gimp_help_disable_tooltips (void);</pre>
200
198
the user setting from the GIMP preferences dialog is respected in
201
199
all plug-in dialogs.</p>
207
<div class="refsect2" lang="en">
204
<div class="refsect2" title="gimp_standard_help_func ()">
208
205
<a name="gimp-standard-help-func"></a><h3>gimp_standard_help_func ()</h3>
209
206
<pre class="programlisting">void gimp_standard_help_func (const <a
210
207
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
218
215
href="../libgimp/libgimp-gimphelp.html#gimp-help"
219
216
><code class="function">gimp_help()</code></a>. It is the right function to use in almost all cases.</p>
223
219
<div class="variablelist"><table border="0">
224
220
<col align="left" valign="top">
240
<div class="refsect2" lang="en">
236
<div class="refsect2" title="gimp_help_connect ()">
241
237
<a name="gimp-help-connect"></a><h3>gimp_help_connect ()</h3>
242
238
<pre class="programlisting">void gimp_help_connect (<a
243
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
239
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
244
240
>GtkWidget</a> *widget,
245
241
<a class="link" href="libgimpwidgets-GimpHelpUI.html#GimpHelpFunc" title="GimpHelpFunc ()">GimpHelpFunc</a> help_func,
263
258
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
264
259
<td> The widget you want to connect the help accelerator for. Will
266
href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"
261
href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"
267
262
><span class="type">GtkWindow</span></a> in most cases.
289
<div class="refsect2" lang="en">
284
<div class="refsect2" title="gimp_help_set_help_data ()">
290
285
<a name="gimp-help-set-help-data"></a><h3>gimp_help_set_help_data ()</h3>
291
286
<pre class="programlisting">void gimp_help_set_help_data (<a
292
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
287
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
293
288
>GtkWidget</a> *widget,
295
290
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
299
294
>gchar</a> *help_id);</pre>
301
296
The reason why we don't use <a
302
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-set-tooltip-text"
297
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-set-tooltip-text"
303
298
><code class="function">gtk_widget_set_tooltip_text()</code></a> is that
304
299
elements in the GIMP user interface should, if possible, also have
305
300
a <em class="parameter"><code>help_id</code></em> set for context-sensitive help.
308
303
This function can be called with <a
309
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"
304
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
310
305
><span class="type">NULL</span></a> for <em class="parameter"><code>tooltip</code></em>. Use this feature
311
306
if you want to set a help link for a widget which shouldn't have
312
307
a visible tooltip.</p>
316
310
<div class="variablelist"><table border="0">
317
311
<col align="left" valign="top">
320
314
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
322
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
316
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
323
317
><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.
327
321
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
328
322
<td> The text for this widget's tooltip (or <a
329
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"
323
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
330
324
><code class="literal">NULL</code></a>).
334
328
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
335
329
<td> The <em class="parameter"><code>help_id</code></em> for the <a
336
href="/usr/share/gtk-doc/html/gtk/GtkTipsQuery.html"
330
href="http://library.gnome.org/devel/gtk/unstable/GtkTipsQuery.html"
337
331
><span class="type">GtkTipsQuery</span></a> tooltips inspector.
344
<div class="refsect2" lang="en">
338
<div class="refsect2" title="gimp_help_set_help_data_with_markup ()">
345
339
<a name="gimp-help-set-help-data-with-markup"></a><h3>gimp_help_set_help_data_with_markup ()</h3>
346
340
<pre class="programlisting">void gimp_help_set_help_data_with_markup (<a
347
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
341
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
348
342
>GtkWidget</a> *widget,
350
344
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
368
361
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
370
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
363
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
371
364
><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.
375
368
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
376
369
<td> The markup for this widget's tooltip (or <a
377
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"
370
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
378
371
><code class="literal">NULL</code></a>).
382
375
<td><p><span class="term"><em class="parameter"><code>help_id</code></em> :</span></p></td>
383
376
<td> The <em class="parameter"><code>help_id</code></em> for the <a
384
href="/usr/share/gtk-doc/html/gtk/GtkTipsQuery.html"
377
href="http://library.gnome.org/devel/gtk/unstable/GtkTipsQuery.html"
385
378
><span class="type">GtkTipsQuery</span></a> tooltips inspector.
390
<p class="since">Since GIMP 2.6
383
<p class="since">Since GIMP 2.6</p>
394
<div class="refsect2" lang="en">
386
<div class="refsect2" title="gimp_context_help ()">
395
387
<a name="gimp-context-help"></a><h3>gimp_context_help ()</h3>
396
388
<pre class="programlisting">void gimp_context_help (<a
397
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
389
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
398
390
>GtkWidget</a> *widget);</pre>
400
392
This function invokes the context help inspector.
410
402
until it finds an attached <em class="parameter"><code>help_id</code></em> string (which should be the
411
403
case at least for every window/dialog).</p>
415
406
<div class="variablelist"><table border="0">
416
407
<col align="left" valign="top">
418
409
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
420
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
411
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
421
412
><span class="type">GtkWidget</span></a> on the screen.