Use white outlined rectangle for view box. Redraw summary when routes are reordered.
authorCarl Hetherington <carl@carlh.net>
Sun, 14 Jun 2009 21:22:05 +0000 (21:22 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 14 Jun 2009 21:22:05 +0000 (21:22 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5193 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_route_list.cc
gtk2_ardour/editor_summary.cc

index 840114776b439d51d8038f8a954f58dc17e5569b..ae1688b1bc84a27b171277243c986672cf48c93e 100644 (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)
 }
 
index 5aba1170fc0409af380f1dac551d320fcd231dbe..0936692abf886070b842d90bc56a672ee8b2e179 100644 (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);