mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 17:52:42 +02:00
plug-ins: implement file-heif proc list in init_procedures() instead…
… of query_procedures(). Since our procedure list is now fully dynamic with runtime check, it's much better to run it at every startup. Basically if some has updated libheif with new encoders/decoders, we want GIMP to be aware at it at next startup even if the plug-in has not been updated.
This commit is contained in:
@@ -75,7 +75,7 @@ struct _HeifClass
|
|||||||
|
|
||||||
GType heif_get_type (void) G_GNUC_CONST;
|
GType heif_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
static GList * heif_query_procedures (GimpPlugIn *plug_in);
|
static GList * heif_init_procedures (GimpPlugIn *plug_in);
|
||||||
static GimpProcedure * heif_create_procedure (GimpPlugIn *plug_in,
|
static GimpProcedure * heif_create_procedure (GimpPlugIn *plug_in,
|
||||||
const gchar *name);
|
const gchar *name);
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ heif_class_init (HeifClass *klass)
|
|||||||
{
|
{
|
||||||
GimpPlugInClass *plug_in_class = GIMP_PLUG_IN_CLASS (klass);
|
GimpPlugInClass *plug_in_class = GIMP_PLUG_IN_CLASS (klass);
|
||||||
|
|
||||||
plug_in_class->query_procedures = heif_query_procedures;
|
plug_in_class->init_procedures = heif_init_procedures;
|
||||||
plug_in_class->create_procedure = heif_create_procedure;
|
plug_in_class->create_procedure = heif_create_procedure;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@ heif_init (Heif *heif)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static GList *
|
static GList *
|
||||||
heif_query_procedures (GimpPlugIn *plug_in)
|
heif_init_procedures (GimpPlugIn *plug_in)
|
||||||
{
|
{
|
||||||
GList *list = NULL;
|
GList *list = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user