app/core/gimpmoduleinfo.[ch] separated module query from type registration
2002-10-20 Michael Natterer <mitch@gimp.org> * app/core/gimpmoduleinfo.[ch] * libgimp/gimpmodule.h: separated module query from type registration by adding a separate "gimp_module_query" function which must be implemented by modules. Make local copies of the strings returned by the query function. * app/core/gimpmodules.c * app/gui/module-browser.c: changed accordingly. * modules/cdisplay_gamma.c * modules/cdisplay_highcontrast.c * modules/colorsel_triangle.c * modules/colorsel_water.c: added the gimp_module_query() functions.
This commit is contained in:

committed by
Michael Natterer

parent
079b768ea7
commit
4cb04533e4
@ -93,7 +93,7 @@ static void gamma_configure_cancel_callback (GtkWidget *widget,
|
||||
CdisplayGamma *gamma);
|
||||
|
||||
|
||||
static GimpModuleInfo cdisplay_gamma_info =
|
||||
static const GimpModuleInfo cdisplay_gamma_info =
|
||||
{
|
||||
N_("Gamma color display filter"),
|
||||
"Manish Singh <yosh@gimp.org>",
|
||||
@ -106,15 +106,17 @@ static GType cdisplay_gamma_type = 0;
|
||||
static GimpColorDisplayClass *parent_class = NULL;
|
||||
|
||||
|
||||
G_MODULE_EXPORT const GimpModuleInfo *
|
||||
gimp_module_query (GTypeModule *module)
|
||||
{
|
||||
return &cdisplay_gamma_info;
|
||||
}
|
||||
|
||||
G_MODULE_EXPORT gboolean
|
||||
gimp_module_register (GTypeModule *module,
|
||||
GimpModuleInfo **inforet)
|
||||
gimp_module_register (GTypeModule *module)
|
||||
{
|
||||
cdisplay_gamma_get_type (module);
|
||||
|
||||
if (inforet)
|
||||
*inforet = &cdisplay_gamma_info;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user