X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_twotone.cpp;h=deafce4102ad14d6a557cfdbe34ff7b3fd20f195;hb=392b62fa87099d8576a9da614be431a5046fe595;hp=407615cdb2eee36967914a709a5db8353a89b0f0;hpb=6c27d1b6cf4694a873542cb264c650893f2c6e0e;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp index 407615c..deafce4 100644 --- a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp @@ -72,7 +72,7 @@ ValueNode_TwoTone::create(const ValueBase& x) if(id!=ValueBase::TYPE_GRADIENT) { assert(0); - throw runtime_error(_("synfig::ValueNode_TwoTone:Bad type ")+ValueBase::type_local_name(id)); + throw runtime_error(String(_("Two-Tone"))+_(":Bad type ")+ValueBase::type_local_name(id)); } ValueNode_TwoTone* value_node=new ValueNode_TwoTone(); @@ -87,26 +87,6 @@ synfig::ValueNode_TwoTone::~ValueNode_TwoTone() unlink_all(); } -bool -synfig::ValueNode_TwoTone::set_lhs(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_COLOR) - return false; - - ref_a=a; - - return true; -} - -bool -synfig::ValueNode_TwoTone::set_rhs(ValueNode::Handle b) -{ - if(b->get_type()!=ValueBase::TYPE_COLOR) - return false; - ref_b=b; - return true; -} - synfig::ValueBase synfig::ValueNode_TwoTone::operator()(Time t)const { @@ -114,20 +94,15 @@ synfig::ValueNode_TwoTone::operator()(Time t)const } bool -ValueNode_TwoTone::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_TwoTone::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i