summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_route_groups.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-02 00:21:08 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-02 00:21:08 +0000
commitb68256a8ff670d0f9206858daa69e1bdf7810684 (patch)
treea29890adce503a5aa0c433f068479d7bdc2d9a4c /gtk2_ardour/editor_route_groups.cc
parent0fc44fc2f1b9d9706e67abe8a41c70ca3231af60 (diff)
Fix up route group state signal handling. Make the PropertyList version
of Stateful::set_properties emit a changed signal after it has done its work. git-svn-id: svn://localhost/ardour2/branches/3.0@6826 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_route_groups.cc')
-rw-r--r--gtk2_ardour/editor_route_groups.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_route_groups.cc b/gtk2_ardour/editor_route_groups.cc
index 6c1442356d..1c7304fa60 100644
--- a/gtk2_ardour/editor_route_groups.cc
+++ b/gtk2_ardour/editor_route_groups.cc
@@ -586,7 +586,7 @@ EditorRouteGroups::add (RouteGroup* group)
focus = true;
}
- group->FlagsChanged.connect (flags_connection, MISSING_INVALIDATOR, ui_bind (&EditorRouteGroups::flags_changed, this, _1, group), gui_context());
+ group->PropertyChanged.connect (property_changed_connection, MISSING_INVALIDATOR, ui_bind (&EditorRouteGroups::property_changed, this, group, _1), gui_context());
if (focus) {
TreeViewColumn* col = _display.get_column (0);
@@ -622,10 +622,8 @@ EditorRouteGroups::groups_changed ()
}
void
-EditorRouteGroups::flags_changed (void*, RouteGroup* group)
+EditorRouteGroups::property_changed (RouteGroup* group, const PropertyChange& change)
{
- ENSURE_GUI_THREAD (*this, &EditorRouteGroups::flags_changed, src, group)
-
_in_row_change = true;
Gtk::TreeModel::Children children = _model->children();
@@ -645,7 +643,9 @@ EditorRouteGroups::flags_changed (void*, RouteGroup* group)
_in_row_change = false;
- _editor->_group_tabs->set_dirty ();
+ if (change.contains (Properties::name) || change.contains (Properties::active)) {
+ _editor->_group_tabs->set_dirty ();
+ }
}
void