summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-01-30 11:32:23 +0000
committerLionel Landwerlin <llandwerlin@gmail.com>2013-01-30 11:32:23 +0000
commit218525a1e87a4926a94d961b8393edcbb5e1c08a (patch)
tree2b0ce3753a4f2289a6974be7488f625309762fa4
parentbe41781365d0b33b258a4275dc65c5f20e4ac75f (diff)
downloadclutter-gst-218525a1e87a4926a94d961b8393edcbb5e1c08a.tar.gz
remove clutter_stage_get_default() calls
-rw-r--r--clutter-gst/clutter-gst-video-sink.c2
-rw-r--r--examples/video-sink-navigation.c2
-rw-r--r--examples/video-sink.c2
-rw-r--r--tests/test-alpha.c2
-rw-r--r--tests/test-rgb-upload.c2
-rw-r--r--tests/test-start-stop.c2
-rw-r--r--tests/test-yuv-upload.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 7b8cb3e..152bebc 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -492,7 +492,7 @@ clutter_gst_source_dispatch (GSource * source,
GST_DEBUG_OBJECT (gst_source->sink,
"No existing texture, creating stage and actor");
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
actor =
g_object_new (CLUTTER_TYPE_TEXTURE, "disable-slicing", TRUE, NULL);
diff --git a/examples/video-sink-navigation.c b/examples/video-sink-navigation.c
index 87f0795..5ccace6 100644
--- a/examples/video-sink-navigation.c
+++ b/examples/video-sink-navigation.c
@@ -92,7 +92,7 @@ main (int argc, char *argv[])
}
gst_init (&argc, &argv);
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);
/* Make a timeline */
diff --git a/examples/video-sink.c b/examples/video-sink.c
index b0e13f3..b233906 100644
--- a/examples/video-sink.c
+++ b/examples/video-sink.c
@@ -90,7 +90,7 @@ main (int argc, char *argv[])
}
gst_init (&argc, &argv);
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
/* Make a timeline */
timeline = clutter_timeline_new (1000);
diff --git a/tests/test-alpha.c b/tests/test-alpha.c
index 238508e..23e8844 100644
--- a/tests/test-alpha.c
+++ b/tests/test-alpha.c
@@ -140,7 +140,7 @@ main (int argc, char *argv[])
}
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_set_size (stage, 320.0f, 240.0f);
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
diff --git a/tests/test-rgb-upload.c b/tests/test-rgb-upload.c
index 22f77c5..5a324d5 100644
--- a/tests/test-rgb-upload.c
+++ b/tests/test-rgb-upload.c
@@ -132,7 +132,7 @@ main (int argc, char *argv[])
return EXIT_FAILURE;
}
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_set_size (CLUTTER_ACTOR (stage), 320.0f, 240.0f);
/* We need to set certain props on the target texture currently for
diff --git a/tests/test-start-stop.c b/tests/test-start-stop.c
index 7128343..62801c7 100644
--- a/tests/test-start-stop.c
+++ b/tests/test-start-stop.c
@@ -141,7 +141,7 @@ main (int argc, char *argv[])
error = clutter_gst_init (&argc, &argv);
g_assert (error == CLUTTER_INIT_SUCCESS);
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
video = clutter_gst_video_texture_new ();
diff --git a/tests/test-yuv-upload.c b/tests/test-yuv-upload.c
index a8ee1dd..1b8b02b 100644
--- a/tests/test-yuv-upload.c
+++ b/tests/test-yuv-upload.c
@@ -119,7 +119,7 @@ main (int argc, char *argv[])
return EXIT_FAILURE;
}
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_set_size (CLUTTER_ACTOR(stage), 320.0f, 240.0f);
/* We need to set certain props on the target texture currently for