Use white outlined rectangle for view box. Redraw summary when routes are reordered.

git-svn-id: svn://localhost/ardour2/branches/3.0@5193 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2009-06-14 21:22:05 +00:00
parent 8051c3e76a
commit 131a16d96d
2 changed files with 8 additions and 4 deletions

View File

@@ -401,7 +401,7 @@ Editor::redisplay_route_list ()
We scroll down to keep in step with the controls layout.
*/
vertical_adjustment.set_value (full_canvas_height - _canvas_height);
}
}
if (!route_redisplay_does_not_reset_order_keys && !route_redisplay_does_not_sync_order_keys) {
session->sync_order_keys (_order_key);
@@ -421,6 +421,8 @@ Editor::sync_track_view_list_and_route_list ()
track_views.push_back (tv);
}
_summary->set_dirty ();
return false; // do not call again (until needed)
}

View File

@@ -97,14 +97,16 @@ EditorSummary::on_expose_event (GdkEventExpose* event)
cairo_t* cr = gdk_cairo_create (get_window()->gobj());
cairo_set_source_rgba (cr, 0, 1, 0, 0.25);
cairo_move_to (cr, x.first, y.first);
cairo_line_to (cr, x.second, y.first);
cairo_line_to (cr, x.second, y.second);
cairo_line_to (cr, x.first, y.second);
cairo_line_to (cr, x.first, y.first);
cairo_fill (cr);
cairo_set_source_rgba (cr, 1, 1, 1, 0.25);
cairo_fill_preserve (cr);
cairo_set_line_width (cr, 1);
cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
cairo_stroke (cr);
cairo_destroy (cr);