gnomemm r1881 - in cluttermm/trunk: . tests
- From: daniel svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1881 - in cluttermm/trunk: . tests
- Date: Thu, 18 Dec 2008 13:04:36 +0000 (UTC)
Author: daniel
Date: Thu Dec 18 13:04:36 2008
New Revision: 1881
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1881&view=rev
Log:
* tests/test-alpha-creation.cc: Kill cruft. The test case still
seems a bit odd though since it creates a Behaviour which is never
used.
Modified:
cluttermm/trunk/ChangeLog
cluttermm/trunk/tests/test-alpha-creation.cc
Modified: cluttermm/trunk/tests/test-alpha-creation.cc
==============================================================================
--- cluttermm/trunk/tests/test-alpha-creation.cc (original)
+++ cluttermm/trunk/tests/test-alpha-creation.cc Thu Dec 18 13:04:36 2008
@@ -1,40 +1,30 @@
#include <cluttermm.h>
-#include <clutter/clutter.h>
-#include <iostream>
-Glib::RefPtr<Clutter::Actor> hand;
-
-int
-main (int argc, char *argv[])
+int main(int argc, char** argv)
{
- // initialize the C++ wrapper types
- Clutter::init(&argc, &argv);
+ // initialize the C++ wrapper types
+ Clutter::init(&argc, &argv);
- Glib::RefPtr<Clutter::Stage> stage = Clutter::Stage::get_default ();
+ Glib::RefPtr<Clutter::Stage> stage = Clutter::Stage::get_default();
- // Create a timeline to manage animation
- Glib::RefPtr<Clutter::Timeline> timeline =
- Clutter::Timeline::create (360, 60); // num frames, fps
+ // Create a timeline to manage animation
+ Glib::RefPtr<Clutter::Timeline> timeline =
+ Clutter::Timeline::create(360, 60); // num frames, fps
- // Set up some behaviours to handle scaling
- //Causes a Gobject (refcount?) warning: Glib::RefPtr<Clutter::Alpha> alpha =
- // Clutter::Alpha::create (timeline, Clutter::ALPHA_SINE);
- Glib::RefPtr<Clutter::Alpha> alpha =
- Clutter::Alpha::create(timeline, &Clutter::Alpha::sine_func);
+ // Set up some behaviours to handle scaling
+ Glib::RefPtr<Clutter::Alpha> alpha =
+ Clutter::Alpha::create(timeline, &Clutter::Alpha::sine_func);
- Glib::RefPtr<Clutter::BehaviourScale> scaler_1 =
- Clutter::BehaviourScale::create (alpha,
- 0.5, 0.5,
- 1.0, 1.0);
+ Glib::RefPtr<Clutter::BehaviourScale> scaler_1 =
+ Clutter::BehaviourScale::create(alpha, 0.5, 0.5, 1.0, 1.0);
- // Show everying ( and map window )
- stage->show ();
+ // Show everying ( and map window )
+ stage->show();
- // and start it
- timeline->start ();
+ // and start it
+ timeline->start();
- clutter_main ();
+ Clutter::main();
- return 0;
+ return 0;
}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]