- 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) ;
+ frame_handle_start = new ArdourCanvas::SimpleRect (*group);
+ frame_handle_start->property_x1() = (double) 0.0;
+ frame_handle_start->property_x2() = (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH;
+ frame_handle_start->property_y1() = (double) 1.0;
+ frame_handle_start->property_y2() = (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH+1;
+ frame_handle_start->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_FrameHandle.get();
+
+ frame_handle_end = new ArdourCanvas::SimpleRect (*group);
+ frame_handle_end->property_x1() = (double) (trackview.editor().frame_to_pixel(get_duration())) - (TimeAxisViewItem::GRAB_HANDLE_LENGTH);
+ frame_handle_end->property_x2() = (double) trackview.editor().frame_to_pixel(get_duration());
+ frame_handle_end->property_y1() = (double) 1;
+ frame_handle_end->property_y2() = (double) TimeAxisViewItem::GRAB_HANDLE_LENGTH + 1;
+ frame_handle_end->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_FrameHandle.get();
+