}
/** Add a bundle to a group.
}
/** Add a bundle to a group.
i->changed_connection.disconnect ();
_bundles.erase (i);
i->changed_connection.disconnect ();
_bundles.erase (i);
- g->Modified.connect (sigc::mem_fun (*this, &PortGroupList::emit_changed));
+ g->Changed.connect (sigc::mem_fun (*this, &PortGroupList::emit_changed));
_bundle_changed_connections.push_back (
g->BundleChanged.connect (sigc::hide (sigc::mem_fun (*this, &PortGroupList::emit_changed)))
_bundle_changed_connections.push_back (
g->BundleChanged.connect (sigc::hide (sigc::mem_fun (*this, &PortGroupList::emit_changed)))
void set_visible (bool v) {
_visible = v;
void set_visible (bool v) {
_visible = v;
}
bool has_port (std::string const &) const;
}
bool has_port (std::string const &) const;
- sigc::signal<void> Modified;
+ sigc::signal<void> Changed;
sigc::signal<void, ARDOUR::Bundle::Change> BundleChanged;
struct BundleRecord {
sigc::signal<void, ARDOUR::Bundle::Change> BundleChanged;
struct BundleRecord {
_min_height_divisor (1),
_show_only_bundles (false),
_inhibit_toggle_show_only_bundles (false),
_min_height_divisor (1),
_show_only_bundles (false),
_inhibit_toggle_show_only_bundles (false),
{
_body = new PortMatrixBody (this);
{
_body = new PortMatrixBody (this);
void
PortMatrix::setup ()
{
void
PortMatrix::setup ()
{
setup_scrollbars ();
queue_draw ();
setup_scrollbars ();
queue_draw ();
- _first_setup = false;
-
+
+void
+PortMatrix::on_realize ()
+{
+ Widget::on_realize ();
+ _realized = true;
+}
+
+void
+PortMatrix::on_unrealize ()
+{
+ Widget::on_unrealize ();
+ _realized = false;
+}
void hide_group (boost::weak_ptr<PortGroup>);
void show_group (boost::weak_ptr<PortGroup>);
void toggle_show_only_bundles ();
void hide_group (boost::weak_ptr<PortGroup>);
void show_group (boost::weak_ptr<PortGroup>);
void toggle_show_only_bundles ();
+ void on_realize ();
+ void on_unrealize ();
/// port type that we are working with
ARDOUR::DataType _type;
/// port type that we are working with
ARDOUR::DataType _type;
int _min_height_divisor;
bool _show_only_bundles;
bool _inhibit_toggle_show_only_bundles;
int _min_height_divisor;
bool _show_only_bundles;
bool _inhibit_toggle_show_only_bundles;