[gnome-shell] Silence -Werror for other clutter_init callers
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Silence -Werror for other clutter_init callers
- Date: Sun, 13 Mar 2011 18:17:18 +0000 (UTC)
commit bdebaa986b5eea44dcf20fb53a1e109ed7120a78
Author: Colin Walters <walters verbum org>
Date: Sun Mar 13 14:16:54 2011 -0400
Silence -Werror for other clutter_init callers
src/run-js-test.c | 3 ++-
src/test-recorder.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/run-js-test.c b/src/run-js-test.c
index 5be4ead..7ffa62c 100644
--- a/src/run-js-test.c
+++ b/src/run-js-test.c
@@ -77,7 +77,8 @@ main(int argc, char **argv)
clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
clutter_x11_disable_event_retrieval ();
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ g_error ("failed to initialize Clutter");
gdk_window_add_filter (NULL, event_filter, NULL);
diff --git a/src/test-recorder.c b/src/test-recorder.c
index 9b3f7b5..2a684e1 100644
--- a/src/test-recorder.c
+++ b/src/test-recorder.c
@@ -31,7 +31,8 @@ int main (int argc, char **argv)
g_thread_init (NULL);
gst_init (&argc, &argv);
- clutter_init (&argc, &argv);
+ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+ g_error ("failed to initialize Clutter");
clutter_color_from_string (&red, "red");
clutter_color_from_string (&green, "green");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]