diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-14 21:22:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-14 21:22:05 +0000 |
commit | 131a16d96dbab9cf61c8d562b2894ae32551ad23 (patch) | |
tree | 2bec56bcd09f48e86f93b3ff5c5db2db9742617c | |
parent | 8051c3e76a7987e10da380d655b28771d97b6789 (diff) |
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
-rw-r--r-- | gtk2_ardour/editor_route_list.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/editor_summary.cc | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_route_list.cc b/gtk2_ardour/editor_route_list.cc index 840114776b..ae1688b1bc 100644 --- a/gtk2_ardour/editor_route_list.cc +++ b/gtk2_ardour/editor_route_list.cc @@ -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) } diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index 5aba1170fc..0936692abf 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -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); |