[clutter] gdk: report an error when initialization fails



commit c185d2187bc3a82eea6ad24bd2c5a9716d2a785f
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date:   Thu Jan 22 15:38:48 2015 +0000

    gdk: report an error when initialization fails
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743355

 clutter/gdk/clutter-backend-gdk.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c
index 563f85f..e4e31cb 100644
--- a/clutter/gdk/clutter-backend-gdk.c
+++ b/clutter/gdk/clutter-backend-gdk.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]