On error, return FALSE in the post_parse hook

Anything that is not CLUTTER_INIT_SUCCESS is to be considered an error.

This fixes the Clutter initialization sequence to actually error out
on pre-conditions and backend initialization failures.
This commit is contained in:
Emmanuele Bassi 2011-03-04 23:56:12 +00:00
parent 8bde5febd1
commit bed392b9a5

View File

@ -1704,7 +1704,7 @@ post_parse_hook (GOptionContext *context,
* which in turn calls the backend post parse hooks.
*/
if (!clutter_context->defer_display_setup)
return clutter_init_real (error);
return clutter_init_real (error) == CLUTTER_INIT_SUCCESS;
return TRUE;
}