gdk: report an error when initialization fails

https://bugzilla.gnome.org/show_bug.cgi?id=743355
This commit is contained in:
Lionel Landwerlin 2015-01-22 15:38:48 +00:00
parent 8a24892f2d
commit c185d2187b

View File

@ -166,7 +166,11 @@ _clutter_backend_gdk_post_parse (ClutterBackend *backend,
/* Init Gdk, if outside code did not already */
if (!gdk_init_check (NULL, NULL))
return FALSE;
{
g_set_error (error, CLUTTER_INIT_ERROR, CLUTTER_INIT_ERROR_BACKEND,
_("Could not initialize Gdk"));
return FALSE;
}
/*
* Only open connection if not already set by prior call to