-void Widget::update_style()
-{
- Widget *top;
- for(top=this; top->parent; top=top->parent) ;
- Root *root = dynamic_cast<Root *>(top);
- if(!root)
- style = 0;
- else
+ GL::MatrixStack::Push _pushm(GL::MatrixStack::modelview());
+ GL::MatrixStack::modelview() *= GL::Matrix::translation(geom.x, geom.y, 0);
+ const Style::PartSeq &parts = style->get_parts();
+ list<CachedPart>::const_iterator j = cached_parts.begin();
+ for(Style::PartSeq::const_iterator i=parts.begin(); (i!=parts.end() && j!=cached_parts.end()); ++i, ++j)