[sushi] main: don't ignore the return value of gtk_clutter_init()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] main: don't ignore the return value of gtk_clutter_init()
- Date: Mon, 19 Dec 2011 10:35:46 +0000 (UTC)
commit 8b6a4a71c718406c80187868cb004721ae63f1d6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Dec 19 11:35:07 2011 +0100
main: don't ignore the return value of gtk_clutter_init()
But return immediately if it fails.
src/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index db044b7..63797e8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -142,7 +142,10 @@ main (int argc, char **argv)
GError *error;
clutter_x11_set_use_argb_visual (TRUE);
- gtk_clutter_init (&argc, &argv);
+
+ if (gtk_clutter_init (&argc, &argv) < 0)
+ return EXIT_FAILURE;
+
clutter_gst_init (0, NULL);
parse_options (&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]