- name_highlight = new Gnome::Canvas::SimpleRect (*group);
- name_highlight->set_property ("x1", (double) 1.0);
- name_highlight->set_property ("x2", (double) (trackview.editor.frame_to_pixel(item_duration)) - 1);
- name_highlight->set_property ("y1", (double) (trackview.height - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE));
- name_highlight->set_property ("y2", (double) (trackview.height - 1));
- name_highlight->set_property ("outline_color_rgba", color_map[cNameHighlightFill]);
- name_highlight->set_property ("fill_color_rgba", color_map[cNameHighlightOutline]);
+ name_highlight = new ArdourCanvas::SimpleRect (*group);
+ if (visibility & FullWidthNameHighlight) {
+ name_highlight->property_x1() = (double) 0.0;
+ name_highlight->property_x2() = (double) (trackview.editor.frame_to_pixel(item_duration));
+ } else {
+ name_highlight->property_x1() = (double) 1.0;
+ name_highlight->property_x2() = (double) (trackview.editor.frame_to_pixel(item_duration)) - 1;
+ }
+ name_highlight->property_y1() = (double) (trackview.height - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE);
+ name_highlight->property_y2() = (double) (trackview.height - 1);
+ name_highlight->property_outline_color_rgba() = color_map[cNameHighlightFill];
+ name_highlight->property_fill_color_rgba() = color_map[cNameHighlightOutline];