[cluttermm_tutorial] Stage example: Updated to new API - stage creation and set_color.



commit f72801a5083fad4824a87641d7162229d7abd5ed
Author: Ian Martin <martin_id vodafone co nz>
Date:   Fri Feb 12 17:14:50 2016 +1300

    Stage example: Updated to new API - stage creation and set_color.

 examples/stage/main.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/stage/main.cc b/examples/stage/main.cc
index 6ea6b85..1a5edd8 100644
--- a/examples/stage/main.cc
+++ b/examples/stage/main.cc
@@ -42,9 +42,9 @@ int main(int argc, char** argv)
     Clutter::init(&argc, &argv);
 
     // Get the stage and set its size and color:
-    Glib::RefPtr<Clutter::Stage> stage = Clutter::Stage::get_default();
+    Glib::RefPtr<Clutter::Stage> stage = Clutter::Stage::create();
     stage->set_size(200, 200);
-    stage->set_color(Clutter::Color(0, 0, 0)); // black
+    stage->set_background_color(Clutter::Color(0, 0, 0)); // black
 
     stage->show();
 


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