mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
b333bd87f7
commit
ad82353a1a
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user