// "x", initial_pos,
// "y", 0.0,
// NULL);
- group = new Gnome::Canvas::Group (*trackview.canvas_display);
- group->set_property ("x", initial_pos);
- group->set_property ("y", 0.0);
+ group = new ArdourCanvas::Group (*trackview.canvas_display);
+ group->property_x() = initial_pos;
+ group->property_y() = 0.0;
- base_rect = new Gnome::Canvas::SimpleRect (*group);
- base_rect->set_property ("x1", (double) 0.0);
- base_rect->set_property ("y1", (double) 0.0);
- base_rect->set_property ("y2", (double) trackview.height);
- base_rect->set_property ("outline_what", (guint32) 0);
- base_rect->set_property ("outline_color_rgba", color_map[cGhostTrackBaseOutline]);
- base_rect->set_property ("fill_color_rgba", color_map[cGhostTrackBaseFill]);
+ base_rect = new ArdourCanvas::SimpleRect (*group);
+ base_rect->property_x1() = (double) 0.0;
+ base_rect->property_y1() = (double) 0.0;
+ base_rect->property_y2() = (double) trackview.height;
+ base_rect->property_outline_what() = (guint32) 0;
+ base_rect->property_outline_color_rgba() = color_map[cGhostTrackBaseOutline];
+ base_rect->property_fill_color_rgba() = color_map[cGhostTrackBaseFill];
group->lower_to_bottom ();
atv.add_ghost (this);
GhostRegion::set_samples_per_unit (double spu)
{
for (vector<WaveView*>::iterator i = waves.begin(); i != waves.end(); ++i) {
- (*i)->property_samples_per_unit().set_value(spu);
+ (*i)->property_samples_per_unit() = spu;
}
}
void
GhostRegion::set_duration (double units)
{
- base_rect->set_property ("x2", units);
+ base_rect->property_x2() = units;
}
void
vector<WaveView*>::iterator i;
uint32_t n;
- base_rect->set_property ("y2", (double) trackview.height);
+ base_rect->property_y2() = (double) trackview.height;
ht = ((trackview.height) / (double) waves.size());
for (n = 0, i = waves.begin(); i != waves.end(); ++i, ++n) {
gdouble yoff = n * ht;
- (*i)->property_height().set_value(ht);
- (*i)->property_y().set_value(yoff);
+ (*i)->property_height() = ht;
+ (*i)->property_y() = yoff;
}
}