diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-11 07:37:20 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-11 07:37:20 -0400 |
commit | c2885671c6666c0f8bae1181b28339f652d53a39 (patch) | |
tree | 7d336af8138452cab7e336c7e70a43aa35be9f8f /gtk2_ardour/time_axis_view_item.cc | |
parent | c2946ee00f6b5ec8205dd2fcb5b6d2ace2907436 (diff) |
avoid multiple requests for redraws when resetting a TimeAxisViewItem name highlight
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index 8e194c63a2..d5b474a5e3 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -608,17 +608,7 @@ TimeAxisViewItem::manage_name_highlight () if (name_highlight && wide_enough_for_name && high_enough_for_name) { name_highlight->show(); - - name_highlight->set_y0 ((double) _height - NAME_HIGHLIGHT_SIZE); - name_highlight->set_y1 ((double) _height - 1.0); - - if (visibility & FullWidthNameHighlight) { - /* x0 is always 0.0 */ - name_highlight->set_x1 (_width+RIGHT_EDGE_SHIFT); - } else { - /* x0 is always 1.0 */ - name_highlight->set_x1 (_width+RIGHT_EDGE_SHIFT); - } + name_highlight->set (ArdourCanvas::Rect (0.0, (double) _height - NAME_HIGHLIGHT_SIZE, _width+RIGHT_EDGE_SHIFT, (double) _height - 1.0)); } else { name_highlight->hide(); |