[clutter-gst] remove clutter_stage_get_default() calls



commit 218525a1e87a4926a94d961b8393edcbb5e1c08a
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Wed Jan 30 11:32:23 2013 +0000

    remove clutter_stage_get_default() calls

 clutter-gst/clutter-gst-video-sink.c |    2 +-
 examples/video-sink-navigation.c     |    2 +-
 examples/video-sink.c                |    2 +-
 tests/test-alpha.c                   |    2 +-
 tests/test-rgb-upload.c              |    2 +-
 tests/test-start-stop.c              |    2 +-
 tests/test-yuv-upload.c              |    2 +-
 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



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