- /* create our grab handles used for trimming/duration etc */
-
- if (visibility & ShowHandles) {
- frame_handle_start = gnome_canvas_item_new(GNOME_CANVAS_GROUP(group),
- gnome_canvas_simplerect_get_type(),
- "x1", (double) 0.0,
- "x2", (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH,
- "y1", (double) 1.0,
- "y2", (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH+1,
- "outline_color_rgba", color_map[cFrameHandleStartOutline],
- "fill_color_rgba", color_map[cFrameHandleStartFill],
- NULL) ;
-
- frame_handle_end = gnome_canvas_item_new(GNOME_CANVAS_GROUP(group),
- gnome_canvas_simplerect_get_type(),
- "x1", (double) (trackview.editor.frame_to_pixel(get_duration())) - (TimeAxisViewItem::GRAB_HANDLE_LENGTH),
- "x2", (double) trackview.editor.frame_to_pixel(get_duration()),
- "y1", (double) 1,
- "y2", (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH + 1,
- "outline_color_rgba", color_map[cFrameHandleEndOutline],
- "fill_color_rgba", color_map[cFrameHandleEndFill],
- NULL) ;
- } else {
- frame_handle_start = 0;
- frame_handle_end = 0;
- }
+ /* create our grab handles used for trimming/duration etc */
+ frame_handle_start = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height());
+ frame_handle_start->property_outline_what() = 0x0;
+
+ frame_handle_end = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height());
+ frame_handle_end->property_outline_what() = 0x0;