(
0,
0,
- get<int>("content-size[0]", content->getViewWidth()),
- get<int>("content-size[1]", content->getViewHeight())
+ get<int>("content-size[0]", content ? content->getViewWidth() : 400),
+ get<int>("content-size[1]", content ? content->getViewHeight() : 300)
);
if( _decoration_border.isNone() && !shadow_radius )
_image_shadow = _canvas_decoration->getRootGroup()
->getOrCreateChild<sc::Image>("shadow");
- _image_shadow->set<std::string>("file", "gui/images/shadow.png");
+ _image_shadow->set<std::string>("src", "gui/images/shadow.png");
_image_shadow->set<float>("slice", 7);
_image_shadow->set<std::string>("fill", "#000000");
_image_shadow->set<float>("slice-width", slice_width);