37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="libgimp-gimpplugin.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-domain-register" title="gimp_plugin_domain_register ()">gimp_plugin_domain_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_name</code></em>,
41
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_path</code></em>);
42
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-help-register" title="gimp_plugin_help_register ()">gimp_plugin_help_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_name</code></em>,
43
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_uri</code></em>);
44
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-icon-register" title="gimp_plugin_icon_register ()">gimp_plugin_icon_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *procedure_name</code></em>,
45
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpIconType"><span class="type">GimpIconType</span></a> icon_type</code></em>,
46
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *icon_data</code></em>);
47
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-menu-register" title="gimp_plugin_menu_register ()">gimp_plugin_menu_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *procedure_name</code></em>,
48
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *menu_path</code></em>);
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-menu-branch-register" title="gimp_plugin_menu_branch_register ()">gimp_plugin_menu_branch_register</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *menu_path</code></em>,
50
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *menu_name</code></em>);
51
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-set-pdb-error-handler" title="gimp_plugin_set_pdb_error_handler ()">gimp_plugin_set_pdb_error_handler</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBErrorHandler"><span class="type">GimpPDBErrorHandler</span></a> handler</code></em>);
52
<a href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBErrorHandler"><span class="returnvalue">GimpPDBErrorHandler</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-get-pdb-error-handler" title="gimp_plugin_get_pdb_error_handler ()">gimp_plugin_get_pdb_error_handler</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
40
<pre class="synopsis"><span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-domain-register" title="gimp_plugin_domain_register ()">gimp_plugin_domain_register</a> (<em class="parameter"><code>const <span class="type">gchar</span> *domain_name</code></em>,
41
<em class="parameter"><code>const <span class="type">gchar</span> *domain_path</code></em>);
42
<span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-help-register" title="gimp_plugin_help_register ()">gimp_plugin_help_register</a> (<em class="parameter"><code>const <span class="type">gchar</span> *domain_name</code></em>,
43
<em class="parameter"><code>const <span class="type">gchar</span> *domain_uri</code></em>);
44
<span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-icon-register" title="gimp_plugin_icon_register ()">gimp_plugin_icon_register</a> (<em class="parameter"><code>const <span class="type">gchar</span> *procedure_name</code></em>,
45
<em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpIconType"><span class="type">GimpIconType</span></a> icon_type</code></em>,
46
<em class="parameter"><code>const <span class="type">guint8</span> *icon_data</code></em>);
47
<span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-menu-register" title="gimp_plugin_menu_register ()">gimp_plugin_menu_register</a> (<em class="parameter"><code>const <span class="type">gchar</span> *procedure_name</code></em>,
48
<em class="parameter"><code>const <span class="type">gchar</span> *menu_path</code></em>);
49
<span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-menu-branch-register" title="gimp_plugin_menu_branch_register ()">gimp_plugin_menu_branch_register</a> (<em class="parameter"><code>const <span class="type">gchar</span> *menu_path</code></em>,
50
<em class="parameter"><code>const <span class="type">gchar</span> *menu_name</code></em>);
51
<span class="returnvalue">gboolean</span> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-set-pdb-error-handler" title="gimp_plugin_set_pdb_error_handler ()">gimp_plugin_set_pdb_error_handler</a> (<em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBErrorHandler"><span class="type">GimpPDBErrorHandler</span></a> handler</code></em>);
52
<a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBErrorHandler"><span class="returnvalue">GimpPDBErrorHandler</span></a> <a class="link" href="libgimp-gimpplugin.html#gimp-plugin-get-pdb-error-handler" title="gimp_plugin_get_pdb_error_handler ()">gimp_plugin_get_pdb_error_handler</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
55
55
<div class="refsect1">
56
56
<a name="libgimp-gimpplugin.description"></a><h2>Description</h2>
58
Functions useful for plugins, e.g. registration and progress indicators.
58
Functions useful for plugins, e.g. registration and progress
61
62
<div class="refsect1">
62
63
<a name="libgimp-gimpplugin.details"></a><h2>Details</h2>
63
64
<div class="refsect2">
64
65
<a name="gimp-plugin-domain-register"></a><h3>gimp_plugin_domain_register ()</h3>
65
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_plugin_domain_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_name</code></em>,
66
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_path</code></em>);</pre>
66
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_plugin_domain_register (<em class="parameter"><code>const <span class="type">gchar</span> *domain_name</code></em>,
67
<em class="parameter"><code>const <span class="type">gchar</span> *domain_path</code></em>);</pre>
68
69
Registers a textdomain for localisation.
71
72
This procedure adds a textdomain to the list of domains Gimp
72
73
searches for strings when translating its menu entries. There is no
73
74
need to call this function for plug-ins that have their strings
74
included in the gimp-std-plugins domain as that is used by default.
75
If the compiled message catalog is not in the standard location, you
76
may specify an absolute path to another location. This procedure can
77
only be called in the query function of a plug-in and it has to be
78
called before any procedure is installed.
75
included in the 'gimp-std-plugins' domain as that is used by
76
default. If the compiled message catalog is not in the standard
77
location, you may specify an absolute path to another location. This
78
procedure can only be called in the query function of a plug-in and
79
it has to be called before any procedure is installed.
80
81
<div class="variablelist"><table border="0">
81
82
<col align="left" valign="top">
99
100
<div class="refsect2">
100
101
<a name="gimp-plugin-help-register"></a><h3>gimp_plugin_help_register ()</h3>
101
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_plugin_help_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_name</code></em>,
102
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *domain_uri</code></em>);</pre>
102
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_plugin_help_register (<em class="parameter"><code>const <span class="type">gchar</span> *domain_name</code></em>,
103
<em class="parameter"><code>const <span class="type">gchar</span> *domain_uri</code></em>);</pre>
104
105
Register a help path for a plug-in.
107
This procedure changes the help rootdir for the plug-in which calls
108
it. All subsequent calls of <a class="link" href="libgimp-gimphelp.html#gimp-help" title="gimp_help ()"><code class="function">gimp_help()</code></a> from this plug-in will be
109
interpreted relative to this rootdir.
108
This procedure registers user documentation for the calling plug-in
109
with the GIMP help system. The domain_uri parameter points to the
110
root directory where the plug-in help is installed. For each
111
supported language there should be a file called 'gimp-help.xml'
112
that maps the help IDs to the actual help files.
111
114
<div class="variablelist"><table border="0">
112
115
<col align="left" valign="top">
130
133
<div class="refsect2">
131
134
<a name="gimp-plugin-icon-register"></a><h3>gimp_plugin_icon_register ()</h3>
132
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_plugin_icon_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *procedure_name</code></em>,
133
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpIconType"><span class="type">GimpIconType</span></a> icon_type</code></em>,
134
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *icon_data</code></em>);</pre>
135
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_plugin_icon_register (<em class="parameter"><code>const <span class="type">gchar</span> *procedure_name</code></em>,
136
<em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbaseenums.html#GimpIconType"><span class="type">GimpIconType</span></a> icon_type</code></em>,
137
<em class="parameter"><code>const <span class="type">guint8</span> *icon_data</code></em>);</pre>
139
142
<div class="refsect2">
140
143
<a name="gimp-plugin-menu-register"></a><h3>gimp_plugin_menu_register ()</h3>
141
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_plugin_menu_register (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *procedure_name</code></em>,
142
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *menu_path</code></em>);</pre>
144
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_plugin_menu_register (<em class="parameter"><code>const <span class="type">gchar</span> *procedure_name</code></em>,
145
<em class="parameter"><code>const <span class="type">gchar</span> *menu_path</code></em>);</pre>
144
147
Register an additional menu path for a plug-in procedure.