Commit 4ea88689 authored by Jehan's avatar Jehan

plug-ins: conditional gimp_install_procedure() should be in init().

query() is run only the first time for efficiency. Yet this plugin is
dependent on the presence of `rawtherapee` which may be installed or
uninstalled between GIMP startups. Therefore we should move the usual
gimp_install_procedure() to init() so that the check is done at every
startup instead.
parent e34c5c65
......@@ -38,6 +38,7 @@
#define LOAD_THUMB_PROC "file-rawtherapee-load-thumb"
static void init (void);
static void query (void);
static void run (const gchar *name,
gint nparams,
......@@ -54,7 +55,7 @@ static gint32 load_thumbnail_image (const gchar *filename,
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
init, /* init_proc */
NULL, /* quit_proc */
query, /* query proc */
run, /* run_proc */
......@@ -64,7 +65,7 @@ MAIN ()
static void
query (void)
init (void)
{
static const GimpParamDef load_args[] =
{
......@@ -167,6 +168,17 @@ query (void)
}
}
static void
query (void)
{
/* query() is run only the first time for efficiency. Yet this plugin
* is dependent on the presence of rawtherapee which may be installed
* or uninstalled between GIMP startups. Therefore we should move the
* usual gimp_install_procedure() to init() so that the check is done
* at every startup instead.
*/
}
static void
run (const gchar *name,
gint nparams,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment