Commit Graph

9208 Commits

Author SHA1 Message Date
Emmanuele Bassi
212c4a0ee8 2006-07-06 Emmanuele Bassi <ebassi@openedhand.com>
Big rework of the actor management semantics: now ClutterActor
	objects behave like GtkObjects - that is they have an initial
	"floating" reference that gets "sunk" when they are added to
	a ClutterGroup.  This makes a group responsible of de-allocating
	each actor inside it, so you just have to destroy the group to
	get every child actor destroyed.  Also, now you can do:

	  clutter_group_add (group, clutter_video_texture_new ());
	
	without having to care about reference counting and explicit
	unreffing.

	* clutter/clutter-private.h: Add private flags setter and
	getter macros.

	* clutter/clutter-actor.h:
	* clutter/clutter-actor.c: Clean up; inherit from GInitiallyUnowned;
	add a "visible" property; add the "destroy", "show" and "hide"
	signals to ClutterActorClass.

	(clutter_actor_show), (clutter_actor_hide): Refactor a bit; emit
	the "show" and "hide" signals.

	(clutter_actor_set_property), (clutter_actor_get_property),
	(clutter_actor_class_init): Implement the "visible" property; add
	signals.

	(clutter_actor_finalize): Do not leak the actor's name, if it is
	set.
	
	(clutter_actor_dispose): Emit the "destroy" signal here.

	(clutter_actor_init): Sink the initial floating flag if needed.

	(clutter_actor_destroy): Add a function to explicitely destroy
	a ClutterActor.

	(clutter_actor_set_parent), (clutter_actor_get_parent),
	(clutter_actor_unparent): Make set_parent require a valid parent;
	add unparent; check on get_parent; ref_sink the actor when
	setting its parent and unref it when unsetting it.  Probably we'll
	need a function that does reparenting as unparent+set_parent in
	a single shot.

	* clutter/clutter-group.h:
	* clutter/clutter-group.c (clutter_group_dispose),
	(clutter_group_finalize), (clutter_group_add),
	(clutter_group_remove): Make the group destroy its children when
	disposing it; clean up, and use the newly-available
	clutter_actor_unparent().

	* clutter/clutter-stage.h:
	* clutter/clutter-stage.c (clutter_stage_init): ClutterStage is
	a top-level actor; clean up.

	* clutter/clutter-video-texture.h:
	* clutter/clutter-video-texture.c: Clean up.

	* examples/super-oh.c:
	* examples/test.c:
	* examples/video-player.c:
	* examples/test-text.c:
	* examples/video-cube.c: Remove the g_object_unref() call, as the
	ClutterStage object is destroyed on clutter_main_quit().
2006-07-06 17:52:57 +00:00
Iain Holmes
8692008027 Fix typo 2006-06-23 18:18:56 +00:00
Matthew Allum
e2a6630817 2006-06-23 Matthew Allum <mallum@openedhand.com>
* examples/super-oh.c:
        Remove random stage unref fixing trails. Fixes #98
2006-06-23 16:29:11 +00:00
Matthew Allum
21728c5ba9 2006-06-23 Matthew Allum <mallum@openedhand.com>
* examples/video-player.c: (size_change):
        cast stage height to gint avoiding wierdness for when
        video height greater than half display height. Fixed #99
2006-06-23 16:21:13 +00:00
Matthew Allum
fb5f7475d7 2006-06-23 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-video-texture.c: (clutter_video_texture_new):
        Small fix for video playback on Big Endian. See #99
2006-06-23 15:26:43 +00:00
Iain Holmes
5a01d0ab1c Shuffle some layout so that gapi2-parser can understand everything 2006-06-23 15:13:11 +00:00
Ross Burton
c43da5a4bd 2006-06-23 Ross Burton <ross@openedhand.com>
* configure.ac:
	* Makefile.am:
	Remove references to bindings/, it's moved.
2006-06-23 11:36:54 +00:00
Ross Burton
2b8420348a And finish the move 2006-06-23 10:42:29 +00:00
Ross Burton
7dcf899480 First stage of the mass move 2006-06-23 10:42:11 +00:00
Emmanuele Bassi
c38bbd2708 2006-06-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-group.c
	(clutter_group_get_children): Mention that you must free
	the returned list otherwise you'll leak stuff all around.
2006-06-23 10:32:42 +00:00
Ross Burton
ff1152e3b1 2006-06-23 Ross Burton <ross@openedhand.com>
* examples/super-oh.c:
	Fix build with trails enabled. Still crashes.
2006-06-23 09:29:54 +00:00
Ross Burton
6ddf5c196a 2006-06-23 Ross Burton <ross@openedhand.com>
* configure.ac:
	Disable static libraries.
2006-06-23 09:20:04 +00:00
Ross Burton
b93f381c94 2006-06-23 Ross Burton <ross@openedhand.com>
* python/Makefile.am:
	Fix -avoid-version so we don't install clutter.so.0.0.0.
2006-06-23 08:28:04 +00:00
Matthew Allum
70328d585f 2006-06-22 Matthew Allum <mallum@openedhand.com>
* web/index.html:
        Make OpeneHand link
2006-06-22 15:37:00 +00:00
Matthew Allum
f2ecb3745c 2006-06-22 Matthew Allum <mallum@openedhand.com>
* web/index.html:
        Add Pango ref, authors info.
2006-06-22 15:27:42 +00:00
Matthew Allum
8c31bb8e45 2006-06-22 Matthew Allum <mallum@openedhand.com>
* configure.ac:
        * web/index.html:
        Correct Bugzilla link. Add debs link
        Bump up version to 0.1 !
2006-06-22 15:01:22 +00:00
Matthew Allum
9cf7f81d6a 2006-06-22 Matthew Allum <mallum@openedhand.com>
* NEWS:
        Add an entry for 0.1 release
        * web/index.html:
        * web/style.css:
        Add basic website.
2006-06-22 14:57:25 +00:00
Iain Holmes
9b0bd1320e 80% coverage 2006-06-22 14:36:05 +00:00
Iain Holmes
96ed832b09 Add more docs...80% coverage 2006-06-22 14:31:19 +00:00
Iain Holmes
9e1308d9a4 Forgot this bit 2006-06-22 14:16:41 +00:00
Iain Holmes
bf695c4dab Add docs for clutter-media 2006-06-22 14:14:58 +00:00
Iain Holmes
3d95e12687 Fix typos...74% 2006-06-22 13:56:04 +00:00
Ross Burton
e44ba1b7b4 Fix typo 2006-06-22 13:50:39 +00:00
Iain Holmes
29353fc8eb iRemove clutter_util_can_create_texture 2006-06-22 13:49:42 +00:00
Iain Holmes
f13810a34a Docs 2006-06-22 13:48:09 +00:00
Iain Holmes
23cf8a892b More docs 2006-06-22 13:44:47 +00:00
Ross Burton
6113678457 2006-06-22 Ross Burton <ross@openedhand.com>
* tmp/*.sgml:
	Add lots of "no public members" and document some signals.
2006-06-22 13:39:34 +00:00
Iain Holmes
ae1eccdc6d Fix typos and move *_get_type t private sections
--his line, and those below, will be ignored--

M    clutter/clutter-actor.c
M    ChangeLog
M    doc/reference/clutter-sections.txt
M    doc/reference/ChangeLog
M    doc/reference/tmpl/clutter-enum-types.sgml
M    doc/reference/tmpl/clutter-color.sgml
M    doc/reference/tmpl/clutter-event.sgml
M    doc/reference/tmpl/clutter-group.sgml
2006-06-22 13:05:45 +00:00
Emmanuele Bassi
33d0c989ca 2006-06-22 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-timeline.h:
	* clutter/clutter-timeline.c: Add a "started" and a "paused"
	signals; add more sanity checks on the public functions.
	
	(clutter_timeline_get_loop): Add a getter function for the
	loop property.

	* clutter/clutter-marshal.list: Add marshallers.

	* clutter/clutter-timeline.h:
	* clutter/clutter-actor.h: Add padding for future expansion
	without breaking ABI.
2006-06-22 12:05:51 +00:00
Emmanuele Bassi
c8a3a3a94a No, I did not commit that yet 2006-06-22 10:59:09 +00:00
Emmanuele Bassi
76059ec75a Fix my stupid but inevitable lack of memory 2006-06-22 10:58:09 +00:00
Emmanuele Bassi
03122efbcb 2006-06-22 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-docs.sgml: Fix typos.
2006-06-22 09:29:35 +00:00
Emmanuele Bassi
c7df70f5bd 2006-06-22 Emmanuele Bassi <ebassi@openedhand.com>
* python/Makefile.am:
	* python/pyclutter.pc.in: Add a pkgconfig file in order to
	check for bindings existence.
2006-06-22 09:25:58 +00:00
Ross Burton
1de2aebe48 2006-06-22 Ross Burton <ross@openedhand.com>
* tmpl/clutter-group.sgml:
	Fix braindead source parser.
2006-06-22 09:25:12 +00:00
Iain Holmes
a695e2f06c More docustuff 2006-06-22 09:25:01 +00:00
Ross Burton
1b22637650 More gtk-doc fixes 2006-06-22 09:24:15 +00:00
Ross Burton
110d8b9f2d * clutter/clutter-group.c:
Fix gtk-doc problems.
2006-06-22 09:19:32 +00:00
Ross Burton
70b0ee6c1e 2006-06-22 Ross Burton <ross@openedhand.com>
* clutter.sections.txt:
	* clutter-sections.txt:
	Rename . to -, and add missing class members.

	* tmpl/*:
	Resync
2006-06-22 09:19:11 +00:00
Ross Burton
58f2fff6d7 2006-06-22 Ross Burton <ross@openedhand.com>
* clutter/clutter-label.c:
	* clutter/clutter-video-texture.c:
	* clutter/clutter-texture.c:
	* clutter/clutter-timeline.c:
	Fix gtk-doc problems.
2006-06-22 09:14:35 +00:00
Iain Holmes
ad77326868 More documentation 2006-06-22 09:12:40 +00:00
Matthew Allum
83671f4b52 2006-06-22 Matthew Allum <mallum@openedhand.com>
* clutter-docs.sgml:
        Add copyright info.
2006-06-22 09:06:24 +00:00
Emmanuele Bassi
9ddcc92874 2006-06-22 Emmanuele Bassi <ebassi@openedhand.com>
* python/clutter-base-types.defs: Remove ClutterActorTransform.
2006-06-22 08:53:12 +00:00
Matthew Allum
2ccbe3001f 2006-06-22 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-main.h:
        Remove bogus xvisual call.
2006-06-22 08:40:37 +00:00
Iain Holmes
4dd3fa6400 Some more docs 2006-06-21 23:19:59 +00:00
Matthew Allum
38980ad67f 2006-06-22 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-actor.c:
        * clutter/clutter-actor.h:
        Remove mirroring related calls ( unimplemented )
        * gtk/gtk-clutter-test.c: 0 -> NULL
2006-06-21 23:06:55 +00:00
Iain Holmes
f4eee9ad3a Some more docs 2006-06-21 23:02:20 +00:00
Matthew Allum
c39b868aeb 2006-06-22 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-actor.c:
        * clutter/clutter-clone-texture.c:
        * clutter/clutter-color.c:
        * clutter/clutter-event.c:
        * clutter/clutter-group.c:
        * clutter/clutter-label.c:
        * clutter/clutter-main.c:
        * clutter/clutter-media.c:
        * clutter/clutter-rectangle.c:
        * clutter/clutter-stage.c:
        * clutter/clutter-texture.c:
        * clutter/clutter-timeline.c:
        * clutter/clutter-util.c:
        * clutter/clutter-video-texture.c:
        * configure.ac:
        Documentation updates - add section headers.
2006-06-21 22:34:25 +00:00
Iain Holmes
64712056fa Don't show the stage before its embedded. 2006-06-21 22:32:38 +00:00
Iain Holmes
e34b2f77c6 2006-06-22 Iain Holmes <iain@openedhand.com>
* gtk/gtk-clutter.[ch]: Rewrite to use
        clutter_stage_set_xwindow_foreign rather than GtkSocket.

        * gtk/gtk-clutter-test.c: Add fading!1!!!!11! OMGWTFBBQ!!!
2006-06-21 22:29:28 +00:00
Emmanuele Bassi
1b7b2bc573 2006-06-21 Emmanuele Bassi <ebassi@openedhand.com>
* examples/video-cube.c (main): Quit on key press.
2006-06-21 17:25:14 +00:00