Пример #1
0
DependencyObject *
type_create_instance_from_kind (Type::Kind kind)
{
	Type *t = Type::Find (Deployment::GetCurrent (), kind);
	
	if (t == NULL) {
		g_warning ("Unable to create instance of type %d. Type not found.", kind);
		return NULL;
	}
	
	return t->CreateInstance ();
}