Use clutter_base_init() in the init process

Use clutter_base_init() instead of g_type_init(), as it calls the type
function for ClutterActor and allows the compiler to use a constant value
instead of the computed result.
This commit is contained in:
Emmanuele Bassi 2007-05-17 12:03:38 +00:00
parent b333bd87f7
commit ad82353a1a

View File

@ -502,7 +502,7 @@ clutter_init_with_args (int *argc,
if (clutter_is_initialized) if (clutter_is_initialized)
return CLUTTER_INIT_SUCCESS; return CLUTTER_INIT_SUCCESS;
g_type_init (); clutter_base_init ();
group = clutter_get_option_group (); group = clutter_get_option_group ();
context = g_option_context_new (parameter_string); context = g_option_context_new (parameter_string);
@ -592,7 +592,7 @@ clutter_init (int *argc,
if (clutter_is_initialized) if (clutter_is_initialized)
return CLUTTER_INIT_SUCCESS; return CLUTTER_INIT_SUCCESS;
g_type_init (); clutter_base_init ();
/* parse_args will trigger backend creation and things like /* parse_args will trigger backend creation and things like
* DISPLAY connection etc. * DISPLAY connection etc.