[snappy] snappy: confirm clutter init



commit 8b5b1c2b144fe7b532bb57659448097310ecd2ac
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Sat Dec 21 14:39:44 2013 -0500

    snappy: confirm clutter init

 src/snappy.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index 7ec220c..a611f6f 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -31,6 +31,7 @@
 #include <string.h>
 #include <clutter/clutter.h>
 #include <clutter-gst/clutter-gst.h>
+#include <clutter-gtk/clutter-gtk.h>
 
 #include "user_interface.h"
 
@@ -164,19 +165,22 @@ main (int argc, char *argv[])
   gboolean ok, blind = FALSE, fullscreen = FALSE, hide = FALSE, loop = FALSE;
   gboolean secret = FALSE, tags = FALSE;
   gint ret = 0;
-  guint c, index, pos = 0;
   gchar *uri = NULL;
   gchar *suburi = NULL;
-  gchar *version_str;
   GList *uri_list;
   GOptionContext *context;
   gchar *data_dir;
 
+  ClutterInitError ci_err;
+
 #ifdef ENABLE_DBUS
   SnappyMP *mp_obj = NULL;
 #endif
 
-  gtk_clutter_init (&argc, &argv);
+  ci_err = gtk_clutter_init (&argc, &argv);
+  if (ci_err != CLUTTER_INIT_SUCCESS)
+    goto quit;
+
   gst_init (&argc, &argv);
   clutter_gst_init (NULL, NULL);
 


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