diff options
author | Guido Trentalancia <guido@trentalancia.com> | 2011-09-07 20:59:35 +0200 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2011-09-08 18:01:30 +0200 |
commit | 9290eb4af61f9cadf0e0e8e182dd9b08d3d4697d (patch) | |
tree | 118640f27457e9f10acf1fc844d097a6042ee397 /tests | |
parent | 1baf1919d4a21aba125343d916f99eae3cce4974 (diff) |
Check return value of gtk_clutter_init()
Fixes bug 654913.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cheese-test-camera.c | 3 | ||||
-rw-r--r-- | tests/cheese-test-chooser.c | 3 | ||||
-rw-r--r-- | tests/cheese-test-widget.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/cheese-test-camera.c b/tests/cheese-test-camera.c index c64ad170..148c51f4 100644 --- a/tests/cheese-test-camera.c +++ b/tests/cheese-test-camera.c @@ -42,7 +42,8 @@ main (int argc, char **argv) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); - gtk_clutter_init (&argc, &argv); + if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) + return 1; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size (GTK_WINDOW (window), 400, 300); diff --git a/tests/cheese-test-chooser.c b/tests/cheese-test-chooser.c index 8996a87c..506a853c 100644 --- a/tests/cheese-test-chooser.c +++ b/tests/cheese-test-chooser.c @@ -35,7 +35,8 @@ main (int argc, char **argv) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); - gtk_clutter_init (&argc, &argv); + if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) + return 1; window = cheese_avatar_chooser_new (); g_signal_connect (G_OBJECT (window), "response", diff --git a/tests/cheese-test-widget.c b/tests/cheese-test-widget.c index 5b502ee0..3bc53c8a 100644 --- a/tests/cheese-test-widget.c +++ b/tests/cheese-test-widget.c @@ -30,7 +30,8 @@ main (int argc, char **argv) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); - gtk_clutter_init (&argc, &argv); + if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) + return 1; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size (GTK_WINDOW (window), 400, 300); |