mutter/tests
Emmanuele Bassi 101a3cac4e 2008-05-12 Emmanuele Bassi <ebassi@openedhand.com>
Rework the stage wrapper/implementation relation: remove
	duplicated code and all the bookkeeping from the backends into
	ClutterStage whenever possible, to reduce the amount of	work a
	backend must do (and possibly get wrong). Thanks to Tommi
	Komulainen.

	* clutter/clutter-main.c:
	(clutter_init_with_args), (clutter_init): Realize the default
	stage after creation. The default stage is special, because we
	use it in the initialization sequence. This removes the burden
	from the backends and reduces the things a backend can get
	wrong.

	* clutter/clutter-stage.c:
	(clutter_stage_show): Make sure to realize the implementation if
	it hasn't been realized yet.

	(clutter_stage_realize): Set the REALIZED flag and call
	clutter_stage_ensure_current() if the implementation was
	successfully realized.

	(clutter_stage_unrealized): Call clutter_stage_ensure_current()
	on unrealize.

	* clutter/glx/clutter-backend-glx.c:
	(clutter_backend_glx_create_stage): Do not realize the stage anymore
	when creating it, and let the normal realization sequence take
	place.

	(clutter_backend_glx_ensure_context): Trap for X11 errors.

	* clutter/glx/clutter-stage-glx.c:
	(clutter_stage_glx_realize): Chain up to the X11 implementation
	so that we can set up the window state (title, cursor visibility)
	when we actually have a X window. Also, do not call
	clutter_stage_ensure_current(), and rely on the wrapper to do
	it for us. This means we can drop setting the REALIZED flag on
	the wrapper.

	(clutter_stage_glx_unrealize): Do not call
	clutter_stage_ensure_current() ourselves, and rely on the wrapper
	to do it for us.

	* clutter/x11/clutter-stage-x11.c:
	(set_wm_title),	(set_cursor_visible): Move the WM title and
	cursor visibility code inside their own functions.

	(clutter_stage_x11_realize): Set the window title and whether the
	cursor is visible or not after realizing the stage.

	(clutter_stage_x11_set_cursor_visible),
	(clutter_stage_x11_set_title): Call set_wm_title() and
	set_cursor_visible().

	(clutter_stage_x11_finalize): Free the title string.

	* clutter/x11/clutter-stage-x11.h: Save more of the stage state,
	so that we can set it even when the stage hasn't been realized
	yet.

	* clutter/eglnative/clutter-backend-egl.c:
	(clutter_backend_egl_create_stage):
	* clutter/eglnative/clutter-stage-egl.c:
	(clutter_stage_egl_unrealize),
	(clutter_stage_egl_realize): Update the eglnative backend.

	* clutter/eglx/clutter-backend-egl.c:
	(clutter_backend_egl_ensure_context),
	(clutter_backend_egl_create_stage):
	* clutter/eglx/clutter-stage-egl.c:
	(clutter_stage_egl_unrealize),
	(clutter_stage_egl_realize): Update the eglx backend.

	* clutter/sdl/clutter-backend-sdl.c:
	(clutter_backend_sdl_create_stage):
	* clutter/sdl/clutter-stage-sdl.c:
	(clutter_stage_sdl_realize): Update the sdl backend.

	* clutter/fruity/clutter-backend-fruity.c:
	(clutter_backend_fruity_create_stage):
	* clutter/sdl/clutter-stage-fruity.c:
	(clutter_stage_fruity_realize): Update the fruity backend.

	* tests/test-multistage.c (on_button_press): Bail out if
	clutter_stage_new() returns NULL.

	* HACKING.backends: Update backend writing documentation.
2008-05-12 15:26:37 +00:00
..
Makefile.am * tests/Makefile.am (INCLUDES): Added $(top_srcdir)/clutter to the 2008-04-28 10:11:14 +00:00
redhand.png 2007-06-12 Matthew Allum <mallum@openedhand.com> 2007-06-12 10:36:28 +00:00
test-actors.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-behave.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-cogl-offscreen.c * clutter/cogl/cogl.h.in: 2008-05-07 16:12:54 +00:00
test-cogl-primitives.c * clutter/cogl/cogl.h.in: api review touch ups. 2008-05-05 10:25:11 +00:00
test-cogl-tex-convert.c * clutter/cogl/cogl.h.in: 2008-05-07 16:12:54 +00:00
test-cogl-tex-foreign.c * clutter/cogl/cogl.h.in: renaming of API's in cogl to make the 2008-04-29 15:41:34 +00:00
test-cogl-tex-getset.c * clutter/cogl/cogl.h.in: 2008-05-07 16:12:54 +00:00
test-cogl-tex-polygon.c * clutter/cogl/cogl.h.in: 2008-05-07 16:12:54 +00:00
test-cogl-tex-tile.c * clutter/cogl/cogl.h.in: 2008-05-07 16:12:54 +00:00
test-depth.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-effects.c 2007-01-30 Tomas Frydrych <tf@openedhand.com> 2008-01-30 12:13:26 +00:00
test-entry.c 2008-03-06 Emmanuele Bassi <ebassi@openedhand.com> 2008-03-06 12:39:24 +00:00
test-events.c 2007-12-09 Emmanuele Bassi <ebassi@openedhand.com> 2007-12-09 08:53:06 +00:00
test-fbo.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-fullscreen.c 2007-11-26 Emmanuele Bassi <ebassi@openedhand.com> 2007-11-26 12:07:25 +00:00
test-grab.c 2007-12-21 Emmanuele Bassi <ebassi@openedhand.com> 2007-12-21 15:25:00 +00:00
test-model.c 2008-01-09 Emmanuele Bassi <ebassi@openedhand.com> 2008-01-09 14:34:24 +00:00
test-multistage.c 2008-05-12 Emmanuele Bassi <ebassi@openedhand.com> 2008-05-12 15:26:37 +00:00
test-offscreen.c 2007-05-25 Matthew Allum <mallum@openedhand.com> 2007-05-25 10:56:09 +00:00
test-opacity.c 2008-02-20 Emmanuele Bassi <ebassi@openedhand.com> 2008-02-20 10:59:47 +00:00
test-perspective.c Moved dots in test-perspective to 1px off each corner. 2007-06-28 08:24:45 +00:00
test-pixmap.c 2008-05-01 Matthew Allum <mallum@openedhand.com> 2008-04-30 23:07:23 +00:00
test-project.c * clutter/clutter-actor.[ch]: (clutter_actor_set_rotationx), 2007-11-19 11:43:20 +00:00
test-rotate.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-scale.c 2008-02-04 Emmanuele Bassi <ebassi@openedhand.com> 2008-02-04 22:35:38 +00:00
test-score.c 2008-03-18 Emmanuele Bassi <ebassi@openedhand.com> 2008-03-18 22:07:17 +00:00
test-script.c 2007-12-21 Emmanuele Bassi <ebassi@openedhand.com> 2007-12-21 15:25:00 +00:00
test-script.json 2008-05-09 Emmanuele Bassi <ebassi@openedhand.com> 2008-05-09 13:58:04 +00:00
test-shader.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-stage-read-pixels.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-text.c 2008-05-09 Emmanuele Bassi <ebassi@openedhand.com> 2008-05-09 10:58:26 +00:00
test-textures.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00
test-threads.c 2007-10-16 Tomas Frydrych <tf@o-hand.com> 2007-10-16 08:34:16 +00:00
test-timeline-dup-frames.c Adds some new timeline unit-tests (#439) with actual timeline 2008-03-05 16:04:06 +00:00
test-timeline-interpolate.c Adds some new timeline unit-tests (#439) with actual timeline 2008-03-05 16:04:06 +00:00
test-timeline-rewind.c Adds some new timeline unit-tests (#439) with actual timeline 2008-03-05 16:04:06 +00:00
test-timeline-smoothness.c Adds some new timeline unit-tests (#439) with actual timeline 2008-03-05 16:04:06 +00:00
test-timeline.c 2008-03-18 Emmanuele Bassi <ebassi@openedhand.com> 2008-03-18 17:50:45 +00:00
test-unproject.c 2007-12-21 Emmanuele Bassi <ebassi@openedhand.com> 2007-12-21 15:25:00 +00:00
test-viewport.c Merged clutter-ivan branch into trunk. 2008-04-25 13:37:36 +00:00