- base_rect = gnome_canvas_item_new (GNOME_CANVAS_GROUP(group),
- gnome_canvas_simplerect_get_type(),
- "x1", (double) 0.0,
- "y1", (double) 0.0,
- "y2", (double) trackview.height,
- "outline_what", (guint32) 0,
- "outline_color_rgba", color_map[cGhostTrackBaseOutline],
- "fill_color_rgba", color_map[cGhostTrackBaseFill],
- NULL);
-
- gnome_canvas_item_lower_to_bottom (group);
+ 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 ();