2004-05-19 06:54:41 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpplugin.h
|
2019-07-31 06:12:36 +08:00
|
|
|
* Copyright (C) 2019 Michael Natterer <mitch@gimp.org>
|
2004-05-19 06:54:41 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-05-19 06:54:41 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-05-19 06:54:41 +08:00
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2004-05-19 06:54:41 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2004-05-19 06:54:41 +08:00
|
|
|
#ifndef __GIMP_PLUG_IN_H__
|
|
|
|
#define __GIMP_PLUG_IN_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2021-04-02 07:57:10 +08:00
|
|
|
#define GIMP_PLUG_IN_ERROR (gimp_plug_in_error_quark ())
|
|
|
|
|
2019-07-26 05:07:24 +08:00
|
|
|
#define GIMP_TYPE_PLUG_IN (gimp_plug_in_get_type ())
|
|
|
|
#define GIMP_PLUG_IN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PLUG_IN, GimpPlugIn))
|
|
|
|
#define GIMP_PLUG_IN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PLUG_IN, GimpPlugInClass))
|
|
|
|
#define GIMP_IS_PLUG_IN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PLUG_IN))
|
|
|
|
#define GIMP_IS_PLUG_IN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PLUG_IN))
|
|
|
|
#define GIMP_PLUG_IN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PLUG_IN, GimpPlugInClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpPlugInClass GimpPlugInClass;
|
|
|
|
typedef struct _GimpPlugInPrivate GimpPlugInPrivate;
|
|
|
|
|
|
|
|
struct _GimpPlugIn
|
|
|
|
{
|
|
|
|
GObject parent_instance;
|
|
|
|
|
|
|
|
GimpPlugInPrivate *priv;
|
|
|
|
};
|
|
|
|
|
2019-09-10 02:53:39 +08:00
|
|
|
/**
|
|
|
|
* GimpPlugInClass:
|
2019-09-10 21:22:54 +08:00
|
|
|
*
|
2019-09-22 01:10:46 +08:00
|
|
|
* A class which every plug-in should subclass, while overriding
|
2021-11-29 02:36:07 +08:00
|
|
|
* [vfunc@PlugIn.query_procedures] and/or [vfunc@PlugIn.init_procedures], as
|
|
|
|
* well as [vfunc@PlugIn.create_procedure].
|
2019-09-10 02:53:39 +08:00
|
|
|
*
|
|
|
|
* Since: 3.0
|
|
|
|
**/
|
2019-07-26 05:07:24 +08:00
|
|
|
struct _GimpPlugInClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
2019-09-10 21:22:54 +08:00
|
|
|
/**
|
|
|
|
* GimpPlugInClass::query_procedures:
|
|
|
|
* @plug_in: a #GimpPlugIn.
|
|
|
|
*
|
2021-11-29 02:36:07 +08:00
|
|
|
* This method can be overridden by all plug-ins to return a newly allocated
|
|
|
|
* list of allocated strings naming the procedures registered by this
|
|
|
|
* plug-in. See documentation of [vfunc@PlugIn.init_procedures] for
|
|
|
|
* differences.
|
|
|
|
*
|
|
|
|
* Returns: (element-type gchar*) (transfer full): the names of the procedures registered by @plug_in.
|
|
|
|
*/
|
2019-08-03 01:10:13 +08:00
|
|
|
GList * (* query_procedures) (GimpPlugIn *plug_in);
|
2019-09-10 21:22:54 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GimpPlugInClass::init_procedures:
|
|
|
|
* @plug_in: a #GimpPlugIn.
|
|
|
|
*
|
2021-11-29 02:36:07 +08:00
|
|
|
* This method can be overridden by all plug-ins to return a newly allocated
|
|
|
|
* list of allocated strings naming procedures registered by this plug-in.
|
|
|
|
* It is different from [vfunc@PlugIn.query_procedures] in that init happens
|
|
|
|
* at every startup, whereas query happens only once in the life of a plug-in
|
|
|
|
* (right after installation or update). Hence [vfunc@PlugIn.init_procedures]
|
|
|
|
* typically returns procedures dependent to runtime conditions (such as the
|
|
|
|
* presence of a third-party tool), whereas [vfunc@PlugIn.query_procedures]
|
|
|
|
* would usually return procedures that are always available unconditionally.
|
|
|
|
*
|
|
|
|
* Most of the time, you only want to override
|
|
|
|
* [vfunc@PlugIn.query_procedures] and leave [vfunc@PlugIn.init_procedures]
|
|
|
|
* untouched.
|
|
|
|
*
|
|
|
|
* Returns: (element-type gchar*) (transfer full): the names of the procedures registered by @plug_in.
|
2019-09-11 02:00:42 +08:00
|
|
|
**/
|
2019-08-03 01:10:13 +08:00
|
|
|
GList * (* init_procedures) (GimpPlugIn *plug_in);
|
2019-08-02 23:04:24 +08:00
|
|
|
|
2019-09-10 21:22:54 +08:00
|
|
|
/**
|
|
|
|
* GimpPlugInClass::create_procedure:
|
|
|
|
* @plug_in: a #GimpPlugIn.
|
|
|
|
* @procedure_name: procedure name.
|
|
|
|
*
|
2021-11-29 02:36:07 +08:00
|
|
|
* This method must be overridden by all plug-ins and return a newly
|
|
|
|
* allocated #GimpProcedure named @name.
|
|
|
|
*
|
|
|
|
* This method will be called for every @name as returned by
|
|
|
|
* [vfunc@PlugIn.query_procedures] and [vfunc@PlugIn.init_procedures] so care
|
|
|
|
* must be taken to handle them all. Upon procedure registration,
|
|
|
|
* [vfunc@PlugIn.create_procedure] will be called in the order of the lists
|
|
|
|
* returned by [vfunc@PlugIn.query_procedures] and
|
|
|
|
* [vfunc@PlugIn.init_procedures]
|
|
|
|
*
|
|
|
|
* Returns: (transfer full): the procedure to be registered or executed by @plug_in.
|
|
|
|
*/
|
2019-07-26 08:05:11 +08:00
|
|
|
GimpProcedure * (* create_procedure) (GimpPlugIn *plug_in,
|
2019-08-08 04:05:12 +08:00
|
|
|
const gchar *procedure_name);
|
2019-07-26 05:07:24 +08:00
|
|
|
|
2019-09-10 21:22:54 +08:00
|
|
|
/**
|
|
|
|
* GimpPlugInClass::quit:
|
|
|
|
* @plug_in: a #GimpPlugIn.
|
2021-11-29 02:36:07 +08:00
|
|
|
*
|
|
|
|
* This method can be overridden by a plug-in which needs to perform some
|
|
|
|
* actions upon quitting.
|
|
|
|
*/
|
2019-08-02 18:05:28 +08:00
|
|
|
void (* quit) (GimpPlugIn *plug_in);
|
|
|
|
|
libgimp: add a new set_i18n() method to GimpPlugIn class.
Clearly the old logic for localizing plug-ins was "core plug-ins first":
* In particular, we were defaulting to the "gimp*-std-plugins" domain,
asking plug-ins to override it with libgimp function
gimp_plug_in_set_translation_domain(). Obviously any third-party
plug-in would have to call this function since their strings are most
likely not the same as GIMP core plug-ins.
* Moreover this was only for the localization of menu items, which means
we had to duplicate work anyway (simplified for core C plug-ins only
with the INIT_I18N macro).
* Also plug-ins had to manage the location of the Gettext catalogs,
which is simpler for core plug-ins with gimp_locale_directory(), but
more annoying for third-party plug-ins which can be installed
basically anywhere (assuming their message catalogs are in their
directory, not centrally installed on the system, especially for
non-UNIX-like packages, with relocatable GIMP, no central package
system and so on).
* Finally in this logic of centrally installed catalogs, we were
requesting that the domain name is unique, which makes sense in a
Linux world with well maintained packages to avoid name clashes, not
in a world with people making plug-ins without knowing too much what's
done by their neighbour.
So now the new logic is:
- By default, GIMP will search for a folder called locale/ on the same
level as the plug-in executable. The Gettext domain will be the name
of the executable folder (and it doesn't matter too much if it's not
unique in such configuration).
- This can be disabled by overriding set_i18n() to NULL or
reimplementing it. All our core plug-ins will do this since they will
continue to use the centrally installed "gimp*-std-plugins" domain (or
"gimp*-python" for Python plug-ins).
- When not disabled while the folder is not available, warning messages
will be outputted to stderr, so that plug-in developers can easily
detect what is missing and how to handle it (and how to easily support
internationalization of their plug-in).
- gimp_plug_in_set_translation_domain() is removed and a future commit
is going to get rid of _gimp_plug_in_domain_register() because we are
going to get rid of the core-side localization of menu items (with
logic explained in the upcoming commit).
2022-05-26 06:39:32 +08:00
|
|
|
/**
|
|
|
|
* GimpPlugInClass::set_i18n:
|
|
|
|
* @plug_in: a #GimpPlugIn.
|
|
|
|
* @procedure_name: procedure name.
|
|
|
|
* @gettext_domain: (out) (nullable): Gettext domain. If %NULL, it
|
|
|
|
* defaults to the plug-in name as determined by the
|
|
|
|
* directory the binary is called from.
|
2023-01-25 03:06:38 +08:00
|
|
|
* @catalog_dir: (out) (nullable) (type utf8): relative path to a
|
|
|
|
* subdirectory of the plug-in folder containing the compiled
|
libgimp: add a new set_i18n() method to GimpPlugIn class.
Clearly the old logic for localizing plug-ins was "core plug-ins first":
* In particular, we were defaulting to the "gimp*-std-plugins" domain,
asking plug-ins to override it with libgimp function
gimp_plug_in_set_translation_domain(). Obviously any third-party
plug-in would have to call this function since their strings are most
likely not the same as GIMP core plug-ins.
* Moreover this was only for the localization of menu items, which means
we had to duplicate work anyway (simplified for core C plug-ins only
with the INIT_I18N macro).
* Also plug-ins had to manage the location of the Gettext catalogs,
which is simpler for core plug-ins with gimp_locale_directory(), but
more annoying for third-party plug-ins which can be installed
basically anywhere (assuming their message catalogs are in their
directory, not centrally installed on the system, especially for
non-UNIX-like packages, with relocatable GIMP, no central package
system and so on).
* Finally in this logic of centrally installed catalogs, we were
requesting that the domain name is unique, which makes sense in a
Linux world with well maintained packages to avoid name clashes, not
in a world with people making plug-ins without knowing too much what's
done by their neighbour.
So now the new logic is:
- By default, GIMP will search for a folder called locale/ on the same
level as the plug-in executable. The Gettext domain will be the name
of the executable folder (and it doesn't matter too much if it's not
unique in such configuration).
- This can be disabled by overriding set_i18n() to NULL or
reimplementing it. All our core plug-ins will do this since they will
continue to use the centrally installed "gimp*-std-plugins" domain (or
"gimp*-python" for Python plug-ins).
- When not disabled while the folder is not available, warning messages
will be outputted to stderr, so that plug-in developers can easily
detect what is missing and how to handle it (and how to easily support
internationalization of their plug-in).
- gimp_plug_in_set_translation_domain() is removed and a future commit
is going to get rid of _gimp_plug_in_domain_register() because we are
going to get rid of the core-side localization of menu items (with
logic explained in the upcoming commit).
2022-05-26 06:39:32 +08:00
|
|
|
* Gettext message catalogs. If %NULL, it defaults to
|
|
|
|
* "locale/".
|
|
|
|
*
|
|
|
|
* This method can be overridden by all plug-ins to customize
|
|
|
|
* internationalization of the plug-in.
|
|
|
|
*
|
|
|
|
* This method will be called before initializing, querying or running
|
|
|
|
* @procedure_name (respectively with [vfunc@PlugIn.init_procedures],
|
|
|
|
* [vfunc@PlugIn.query_procedures] or with the `run()` function set in
|
|
|
|
* `gimp_image_procedure_new()`).
|
|
|
|
*
|
|
|
|
* By default, GIMP plug-ins look up gettext compiled message catalogs
|
|
|
|
* in the subdirectory `locale/` under the plug-in folder (same folder
|
|
|
|
* as `gimp_get_progname()`) with a text domain equal to the plug-in
|
|
|
|
* name (regardless @procedure_name). It is unneeded to override this
|
|
|
|
* method if you follow this localization scheme.
|
|
|
|
*
|
|
|
|
* If you wish to disable localization or localize with another system,
|
|
|
|
* simply set the method to %NULL, or possibly implement this method
|
|
|
|
* to do something useful for your usage while returning %FALSE.
|
|
|
|
*
|
2023-01-25 03:06:38 +08:00
|
|
|
* If you wish to tweak the @gettext_domain or the @catalog_dir, return
|
|
|
|
* %TRUE and allocate appropriate @gettext_domain and/or @catalog_dir
|
libgimp: add a new set_i18n() method to GimpPlugIn class.
Clearly the old logic for localizing plug-ins was "core plug-ins first":
* In particular, we were defaulting to the "gimp*-std-plugins" domain,
asking plug-ins to override it with libgimp function
gimp_plug_in_set_translation_domain(). Obviously any third-party
plug-in would have to call this function since their strings are most
likely not the same as GIMP core plug-ins.
* Moreover this was only for the localization of menu items, which means
we had to duplicate work anyway (simplified for core C plug-ins only
with the INIT_I18N macro).
* Also plug-ins had to manage the location of the Gettext catalogs,
which is simpler for core plug-ins with gimp_locale_directory(), but
more annoying for third-party plug-ins which can be installed
basically anywhere (assuming their message catalogs are in their
directory, not centrally installed on the system, especially for
non-UNIX-like packages, with relocatable GIMP, no central package
system and so on).
* Finally in this logic of centrally installed catalogs, we were
requesting that the domain name is unique, which makes sense in a
Linux world with well maintained packages to avoid name clashes, not
in a world with people making plug-ins without knowing too much what's
done by their neighbour.
So now the new logic is:
- By default, GIMP will search for a folder called locale/ on the same
level as the plug-in executable. The Gettext domain will be the name
of the executable folder (and it doesn't matter too much if it's not
unique in such configuration).
- This can be disabled by overriding set_i18n() to NULL or
reimplementing it. All our core plug-ins will do this since they will
continue to use the centrally installed "gimp*-std-plugins" domain (or
"gimp*-python" for Python plug-ins).
- When not disabled while the folder is not available, warning messages
will be outputted to stderr, so that plug-in developers can easily
detect what is missing and how to handle it (and how to easily support
internationalization of their plug-in).
- gimp_plug_in_set_translation_domain() is removed and a future commit
is going to get rid of _gimp_plug_in_domain_register() because we are
going to get rid of the core-side localization of menu items (with
logic explained in the upcoming commit).
2022-05-26 06:39:32 +08:00
|
|
|
* (these use the default if set %NULL).
|
|
|
|
*
|
2023-01-25 03:06:38 +08:00
|
|
|
* Note that @catalog_dir must be a relative path, encoded as UTF-8,
|
|
|
|
* subdirectory of the directory of `gimp_get_progname()`.
|
app, libgimp: reverse internal l10n logic of plug-in labels in core app.
I hesitated a lot whether we should just drop the whole localization of
plug-ins' label and description (blurb) within the core. Actually the
commit messages I wrote a few days ago were moving towards this logic.
It really looks to me like plug-in localization can happen fully within
plug-in themselves. As far as I can see, the only advantage which the
current logic has theoretically is that if we needed, we have access to
both the original strings and their translations (e.g. it could be
useful for text search). Nevertheless I am not sure if we will ever make
use of this, and this is limited cases as all filters turned GEGL ops
don't have such ability anyway.
Nevertheless since previous contributors clearly put quite a lot of work
on this code of localizing the plug-in's label and description within
the main binary, I want to give myself a little more time to think and
study the whole thing because doing anything rash.
In the meantime, what changes is that by default now, a plug-in without
a local gettext catalog is simply not localized. In particular, the core
process doesn't try to localize it using the default catalog, a.k.a.
GETTEXT_PACKAGE"-std-plug-ins" ("gimp30-std-plug-ins"). It just doesn't
make sense and the worst which could happen would be to get unexpected
and wrong translations.
Now by default, plug-ins will try to find a catalog in their main
folder, named as this folder. If it fails to find it, a message is
printed to stderr and localization is disabled (rather than falling back
to a default catalog). It is up to plug-in developers to either install
a catalog, or implement set_i18n() to give the right catalog, folder, or
disable localization with gettext, as handled by libgimp.
2022-06-05 06:56:57 +08:00
|
|
|
* The domain names "gimp30-std-plug-ins", "gimp30-script-fu" and
|
|
|
|
* "gimp30-python" are reserved and can only be used with a %NULL
|
|
|
|
* @catalog_dir. These will use the translation catalogs installed for
|
|
|
|
* core plug-ins, so you are not expected to use these for your
|
|
|
|
* plug-ins, except if you are making a core plug-in. More domain
|
|
|
|
* names may become reserved so we discourage using a gettext domain
|
|
|
|
* starting with "gimp30-".
|
libgimp: add a new set_i18n() method to GimpPlugIn class.
Clearly the old logic for localizing plug-ins was "core plug-ins first":
* In particular, we were defaulting to the "gimp*-std-plugins" domain,
asking plug-ins to override it with libgimp function
gimp_plug_in_set_translation_domain(). Obviously any third-party
plug-in would have to call this function since their strings are most
likely not the same as GIMP core plug-ins.
* Moreover this was only for the localization of menu items, which means
we had to duplicate work anyway (simplified for core C plug-ins only
with the INIT_I18N macro).
* Also plug-ins had to manage the location of the Gettext catalogs,
which is simpler for core plug-ins with gimp_locale_directory(), but
more annoying for third-party plug-ins which can be installed
basically anywhere (assuming their message catalogs are in their
directory, not centrally installed on the system, especially for
non-UNIX-like packages, with relocatable GIMP, no central package
system and so on).
* Finally in this logic of centrally installed catalogs, we were
requesting that the domain name is unique, which makes sense in a
Linux world with well maintained packages to avoid name clashes, not
in a world with people making plug-ins without knowing too much what's
done by their neighbour.
So now the new logic is:
- By default, GIMP will search for a folder called locale/ on the same
level as the plug-in executable. The Gettext domain will be the name
of the executable folder (and it doesn't matter too much if it's not
unique in such configuration).
- This can be disabled by overriding set_i18n() to NULL or
reimplementing it. All our core plug-ins will do this since they will
continue to use the centrally installed "gimp*-std-plugins" domain (or
"gimp*-python" for Python plug-ins).
- When not disabled while the folder is not available, warning messages
will be outputted to stderr, so that plug-in developers can easily
detect what is missing and how to handle it (and how to easily support
internationalization of their plug-in).
- gimp_plug_in_set_translation_domain() is removed and a future commit
is going to get rid of _gimp_plug_in_domain_register() because we are
going to get rid of the core-side localization of menu items (with
logic explained in the upcoming commit).
2022-05-26 06:39:32 +08:00
|
|
|
*
|
|
|
|
* When localizing your plug-in this way, GIMP also binds
|
|
|
|
* @gettext_domain to the UTF-8 encoding.
|
|
|
|
*
|
|
|
|
* Returns: %TRUE if this plug-in will use Gettext localization. You
|
|
|
|
* may return %FALSE if you wish to disable localization or
|
|
|
|
* set it up differently.
|
|
|
|
*
|
|
|
|
* Since: 3.0
|
|
|
|
*/
|
|
|
|
gboolean (* set_i18n) (GimpPlugIn *plug_in,
|
|
|
|
const gchar *procedure_name,
|
|
|
|
gchar **gettext_domain,
|
|
|
|
gchar **catalog_dir);
|
|
|
|
|
2019-07-26 05:07:24 +08:00
|
|
|
/* Padding for future expansion */
|
2019-12-28 02:56:21 +08:00
|
|
|
/*< private >*/
|
2019-07-26 05:07:24 +08:00
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-04-02 07:57:10 +08:00
|
|
|
GQuark gimp_plug_in_error_quark (void);
|
|
|
|
|
2019-07-31 01:21:57 +08:00
|
|
|
GType gimp_plug_in_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
void gimp_plug_in_set_help_domain (GimpPlugIn *plug_in,
|
|
|
|
const gchar *domain_name,
|
|
|
|
GFile *domain_uri);
|
|
|
|
|
|
|
|
void gimp_plug_in_add_menu_branch (GimpPlugIn *plug_in,
|
|
|
|
const gchar *menu_path,
|
|
|
|
const gchar *menu_label);
|
|
|
|
|
2019-07-31 03:02:58 +08:00
|
|
|
void gimp_plug_in_add_temp_procedure (GimpPlugIn *plug_in,
|
2019-07-31 01:21:57 +08:00
|
|
|
GimpProcedure *procedure);
|
2019-07-31 03:02:58 +08:00
|
|
|
void gimp_plug_in_remove_temp_procedure (GimpPlugIn *plug_in,
|
2019-08-07 16:43:07 +08:00
|
|
|
const gchar *procedure_name);
|
2019-07-31 01:21:57 +08:00
|
|
|
|
2019-07-31 03:02:58 +08:00
|
|
|
GList * gimp_plug_in_get_temp_procedures (GimpPlugIn *plug_in);
|
|
|
|
GimpProcedure * gimp_plug_in_get_temp_procedure (GimpPlugIn *plug_in,
|
2019-08-07 16:43:07 +08:00
|
|
|
const gchar *procedure_name);
|
2019-07-26 05:07:24 +08:00
|
|
|
|
2019-08-02 17:06:48 +08:00
|
|
|
void gimp_plug_in_extension_enable (GimpPlugIn *plug_in);
|
|
|
|
void gimp_plug_in_extension_process (GimpPlugIn *plug_in,
|
|
|
|
guint timeout);
|
|
|
|
|
2019-08-07 17:01:53 +08:00
|
|
|
void gimp_plug_in_set_pdb_error_handler (GimpPlugIn *plug_in,
|
|
|
|
GimpPDBErrorHandler handler);
|
|
|
|
GimpPDBErrorHandler
|
|
|
|
gimp_plug_in_get_pdb_error_handler (GimpPlugIn *plug_in);
|
|
|
|
|
2021-11-27 15:57:30 +08:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GimpPlugIn, g_object_unref);
|
2019-07-26 05:07:24 +08:00
|
|
|
|
2004-05-19 06:54:41 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_PLUG_IN_H__ */
|