reinstate context menu on stereo panner
[ardour.git] / gtk2_ardour / time_axis_view_item.cc
index 43634f43f537f015a5fdc8944e8943641091414f..495efd578cbbf493e2f1591cc7e7feb4b60bfd3c 100644 (file)
@@ -243,6 +243,7 @@ TimeAxisViewItem::hide_rect ()
 
         if (name_highlight) {
                 name_highlight->property_outline_what() = 0x0;
+                name_highlight->property_fill_color_rgba() = UINT_RGBA_CHANGE_A(fill_color,64);
         }
 }
 
@@ -254,6 +255,7 @@ TimeAxisViewItem::show_rect ()
 
         if (name_highlight) {
                 name_highlight->property_outline_what() = 0x4;
+                name_highlight->property_fill_color_rgba() = fill_color;
         }
 }
 
@@ -746,6 +748,16 @@ TimeAxisViewItem::set_frame_color()
        }
 
         frame->property_fill_color_rgba() = f;
+
+        if (!_recregion) {
+                f = ARDOUR_UI::config()->canvasvar_TimeAxisFrame.get();
+                
+                if (!rect_visible) {
+                        f = UINT_RGBA_CHANGE_A (f, 64);
+                }
+                
+                frame->property_outline_color_rgba() = f;
+        }
 }
 
 /**