Commit 9cec74e9 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

deprecated. Changed implementation to simply call

2005-06-15  Michael Natterer  <mitch@gimp.org>

	* libgimpmodule/gimpmodule.[ch] (gimp_module_register_enum):
	deprecated. Changed implementation to simply call
	g_type_module_register_enum().

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_proof.c: use g_type_module_register_enum() instead.
parent fa593afd
2005-06-15 Michael Natterer <mitch@gimp.org>
* libgimpmodule/gimpmodule.[ch] (gimp_module_register_enum):
deprecated. Changed implementation to simply call
g_type_module_register_enum().
* modules/cdisplay_colorblind.c
* modules/cdisplay_proof.c: use g_type_module_register_enum() instead.
2005-06-14 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.c (gimp_image_raise_layer)
......
......@@ -441,9 +441,7 @@ gimp_module_state_name (GimpModuleState state)
* @name:
* @const_static_values:
*
* Registers an enum similar to g_enum_register_static() but for
* modules. This function should actually live in GLib but since
* there's no such API, it is provided here.
* This function is deprecated! Use g_type_module_register_enum() instead.
*
* Return value: a new enum #GType
**/
......@@ -452,17 +450,7 @@ gimp_module_register_enum (GTypeModule *module,
const gchar *name,
const GEnumValue *const_static_values)
{
GTypeInfo enum_type_info = { 0, };
g_return_val_if_fail (G_IS_TYPE_MODULE (module), 0);
g_return_val_if_fail (name != NULL, 0);
g_return_val_if_fail (const_static_values != NULL, 0);
g_enum_complete_type_info (G_TYPE_ENUM,
&enum_type_info, const_static_values);
return g_type_module_register_type (G_TYPE_MODULE (module),
G_TYPE_ENUM, name, &enum_type_info, 0);
return g_type_module_register_enum (module, name, const_static_values);
}
......
......@@ -135,11 +135,11 @@ void gimp_module_set_load_inhibit (GimpModule *module,
const gchar * gimp_module_state_name (GimpModuleState state);
/* supplement for missing GTypeModule API */
#ifndef GIMP_DISABLE_DEPRECATED
GType gimp_module_register_enum (GTypeModule *module,
const gchar *name,
const GEnumValue *const_static_values);
#endif /* GIMP_DISABLE_DEPRECATED */
/* GimpModuleInfo functions */
......
......@@ -260,8 +260,8 @@ cdisplay_colorblind_deficiency_get_type (GTypeModule *module)
if (! cdisplay_colorblind_deficiency_type)
{
cdisplay_colorblind_deficiency_type =
gimp_module_register_enum (module,
"CDisplayColorblindDeficiency", enum_values);
g_type_module_register_enum (module, "CDisplayColorblindDeficiency",
enum_values);
gimp_enum_set_value_descriptions (cdisplay_colorblind_deficiency_type,
enum_descs);
......
......@@ -183,8 +183,8 @@ cdisplay_proof_intent_get_type (GTypeModule *module)
if (! cdisplay_proof_intent_type)
{
cdisplay_proof_intent_type =
gimp_module_register_enum (module,
"CDisplayProofIntent", enum_values);
g_type_module_register_enum (module, "CDisplayProofIntent",
enum_values);
gimp_enum_set_value_descriptions (cdisplay_proof_intent_type,
enum_descs);
......
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