summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view_item.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-12 20:22:16 -0500
committerDavid Robillard <d@drobilla.net>2014-12-18 20:23:23 -0500
commit026f7bf5b7bd4b28209a2fa9d421a5a73ec29dc4 (patch)
tree0b52b020baa3b405f65286268e4645bfc34284e9 /gtk2_ardour/time_axis_view_item.cc
parent7ab8a11fb53782dfcf67b652dc65d8d177b0a1b6 (diff)
Make MIDI regions translucent for internal tools.
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r--gtk2_ardour/time_axis_view_item.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc
index 2f860d897b..8c38293442 100644
--- a/gtk2_ardour/time_axis_view_item.cc
+++ b/gtk2_ardour/time_axis_view_item.cc
@@ -184,7 +184,6 @@ TimeAxisViewItem::init (ArdourCanvas::Item* parent, double fpp, uint32_t base_co
last_item_width = 0;
wide_enough_for_name = wide;
high_enough_for_name = high;
- rect_visible = true;
vestigial_frame = 0;
if (duration == 0) {
@@ -287,30 +286,6 @@ TimeAxisViewItem::canvas_group_event (GdkEvent* /*ev*/)
return false;
}
-void
-TimeAxisViewItem::hide_rect ()
-{
- rect_visible = false;
- set_frame_color ();
-
- if (name_highlight) {
- name_highlight->set_outline_what (ArdourCanvas::Rectangle::What (0));
- name_highlight->set_fill_color (UINT_RGBA_CHANGE_A (fill_color, 64));
- }
-}
-
-void
-TimeAxisViewItem::show_rect ()
-{
- rect_visible = true;
- set_frame_color ();
-
- if (name_highlight) {
- name_highlight->set_outline_what (ArdourCanvas::Rectangle::TOP);
- name_highlight->set_fill_color (fill_color);
- }
-}
-
/**
* Set the position of this item on the timeline.
*
@@ -719,13 +694,6 @@ TimeAxisViewItem::set_name_text_color ()
uint32_t
TimeAxisViewItem::fill_opacity () const
{
- if (!rect_visible) {
- /* if the frame/rect is marked as "invisible", then the
- fill should be translucent.parent.
- */
- return 64;
- }
-
if (_dragging) {
return 130;
}