2008-08-06 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-child-meta.c:
	(clutter_child_meta_set_property),
	(clutter_child_meta_class_init): Make the :container and
	:actor properties of ChildMeta construct-only, to allow
	bindings to actually use ChildMeta without abusing the API.

	* clutter/clutter-container.c (create_child_meta): Instead of
	setting the members of the ChildMeta structure, use the
	constructor properties.
This commit is contained in:
Emmanuele Bassi
2008-08-06 10:20:57 +00:00
parent 265f72ff2b
commit 3e31f02211
3 changed files with 46 additions and 6 deletions

View File

@ -641,9 +641,10 @@ create_child_meta (ClutterContainer *container,
return;
}
child_meta = g_object_new (iface->child_meta_type, NULL);
child_meta->container = container;
child_meta->actor = actor;
child_meta = g_object_new (iface->child_meta_type,
"container", container,
"actor", actor,
NULL);
data_list = g_object_get_qdata (G_OBJECT (container), quark_child_meta);
data_list = g_slist_prepend (data_list, child_meta);