gdk: report an error when initialization fails
https://bugzilla.gnome.org/show_bug.cgi?id=743355
This commit is contained in:
parent
8a24892f2d
commit
c185d2187b
@ -166,7 +166,11 @@ _clutter_backend_gdk_post_parse (ClutterBackend *backend,
|
|||||||
|
|
||||||
/* Init Gdk, if outside code did not already */
|
/* Init Gdk, if outside code did not already */
|
||||||
if (!gdk_init_check (NULL, NULL))
|
if (!gdk_init_check (NULL, NULL))
|
||||||
|
{
|
||||||
|
g_set_error (error, CLUTTER_INIT_ERROR, CLUTTER_INIT_ERROR_BACKEND,
|
||||||
|
_("Could not initialize Gdk"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only open connection if not already set by prior call to
|
* Only open connection if not already set by prior call to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user