Simplify test-cogl-primitives
authorNeil Roberts <neil@linux.intel.com>
Fri, 23 Jan 2009 23:55:44 +0000 (23:55 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 23 Jan 2009 23:55:44 +0000 (23:55 +0000)
commit8e437e838fe3e62354ae133d3e90af6d9984c4f7
treec9deeb0e998639da957cbb1b89b07f032c808956
parent343b0ed67ef4a70e42b3eb2a93b15f42bf08e981
Simplify test-cogl-primitives

This removes a lot of code from test-cogl-primitives to make it easier
to follow. The TestCoglBox custom actor has gone and instead a blank
ClutterGroup is created with a paint signal handler.

Instead of rendering constantly and updating when a GTimer elapses a
second, a ClutterTimeline is used with 1 fps and a new redraw is
queued every frame.

The custom main loop is replaced with a regular call to clutter_main.
This fixes the close button of the stage window so you can quit
without having to press Ctrl+C.
tests/interactive/test-cogl-primitives.c