+void
+PortMatrixRowLabels::render_bundle_name (
+ cairo_t* cr, Gdk::Color colour, double xoff, double yoff, boost::shared_ptr<ARDOUR::Bundle> b
+ )
+{
+ double const x = bundle_name_x ();
+
+ int const n = _matrix->show_only_bundles() ? 1 : b->nchannels();
+ set_source_rgb (cr, colour);
+ cairo_rectangle (cr, xoff + x, yoff, _longest_bundle_name + name_pad() * 2, grid_spacing() * n);
+ cairo_fill_preserve (cr);
+ set_source_rgb (cr, background_colour());
+ cairo_set_line_width (cr, label_border_width ());
+ cairo_stroke (cr);
+
+ double const off = grid_spacing() / 2;
+
+// if ((*i)->nchannels () > 0 && !_matrix->show_only_bundles()) {
+// /* use the extent of our first channel name so that the bundle name is vertically aligned with it */
+// cairo_text_extents_t ext;
+// cairo_text_extents (cr, (*i)->channel_name(0).c_str(), &ext);
+// off = (grid_spacing() - ext.height) / 2;
+// }
+
+ set_source_rgb (cr, text_colour());
+ cairo_move_to (cr, xoff + x + name_pad(), yoff + name_pad() + off);
+ cairo_show_text (cr, b->name().c_str());
+}
+