speech_new(struct attr *parent, struct attr **attrs)
{
struct speech *this_;
- struct speech_priv *(*speech_new)(struct speech_methods *meth, struct attr **attrs);
+ struct speech_priv *(*speech_new)(struct speech_methods *meth, struct attr **attrs, struct attr *parent);
struct attr *attr;
attr=attr_search(attrs, NULL, attr_type);
return NULL;
}
this_=g_new0(struct speech, 1);
- this_->priv=speech_new(&this_->meth, attrs);
+ this_->priv=speech_new(&this_->meth, attrs, parent);
this_->attrs=attr_list_dup(attrs);
dbg(1, "say=%p\n", this_->meth.say);
dbg(1,"priv=%p\n", this_->priv);