+ return make_pair (_width, _height);
+}
+
+Gdk::Color
+PortMatrixComponent::background_colour ()
+{
+ return _matrix->get_style()->get_bg (Gtk::STATE_NORMAL);
+}
+
+/** @param g Group.
+ * @return Visible size of the group in grid units, taking visibility and show_only_bundles into account.
+ */
+uint32_t
+PortMatrixComponent::group_size (boost::shared_ptr<const PortGroup> g) const
+{
+ uint32_t s = 0;
+
+ PortGroup::BundleList const & bundles = g->bundles ();
+ if (_matrix->show_only_bundles()) {
+ s = bundles.size();
+ } else {
+ for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
+ s += _matrix->count_of_our_type_min_1 ((*i)->bundle->nchannels());
+ }
+ }
+
+ return s;