X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_region_editor.cc;h=668ed8ed5278434ed9b2be95ef735375f5bf624e;hb=ce7a5e1c9fa3edf2d9cc66875505e402a0aaa6f6;hp=3d29ed6b476dd7e7f01196d30910e28a67529074;hpb=cdcc4d3720d8168a158f6a5a5f23e9ce981bc68c;p=ardour.git diff --git a/gtk2_ardour/audio_region_editor.cc b/gtk2_ardour/audio_region_editor.cc index 3d29ed6b47..668ed8ed52 100644 --- a/gtk2_ardour/audio_region_editor.cc +++ b/gtk2_ardour/audio_region_editor.cc @@ -152,7 +152,7 @@ AudioRegionEditor::AudioRegionEditor (Session* s, boost::shared_ptr show_all(); name_changed (); - bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged)); + bounds_changed (PropertyChange (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged)); gain_changed (); _region->StateChanged.connect (state_connection, ui_bind (&AudioRegionEditor::region_changed, this, _1), gui_context()); @@ -167,13 +167,13 @@ AudioRegionEditor::~AudioRegionEditor () } void -AudioRegionEditor::region_changed (PBD::Change what_changed) +AudioRegionEditor::region_changed (PBD::PropertyChange what_changed) { if (what_changed & NameChanged) { name_changed (); } - if (what_changed & Change (BoundsChanged|StartChanged|Region::SyncOffsetChanged)) { + if (what_changed & PropertyChange (BoundsChanged|StartChanged|Region::SyncOffsetChanged)) { bounds_changed (what_changed); } @@ -326,16 +326,16 @@ AudioRegionEditor::name_changed () } void -AudioRegionEditor::bounds_changed (Change what_changed) +AudioRegionEditor::bounds_changed (PropertyChange what_changed) { - if ((what_changed & Change (PositionChanged|LengthChanged)) == Change (PositionChanged|LengthChanged)) { + if ((what_changed & PropertyChange (PositionChanged|LengthChanged)) == PropertyChange (PositionChanged|LengthChanged)) { position_clock.set (_region->position(), true); end_clock.set (_region->position() + _region->length() - 1, true); length_clock.set (_region->length(), true); - } else if (what_changed & Change (PositionChanged)) { + } else if (what_changed & PropertyChange (PositionChanged)) { position_clock.set (_region->position(), true); end_clock.set (_region->position() + _region->length() - 1, true); - } else if (what_changed & Change (LengthChanged)) { + } else if (what_changed & PropertyChange (LengthChanged)) { end_clock.set (_region->position() + _region->length() - 1, true); length_clock.set (_region->length(), true); } @@ -412,6 +412,6 @@ AudioRegionEditor::sync_offset_relative_clock_changed () bool AudioRegionEditor::on_delete_event (GdkEventAny* ev) { - bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged)); + bounds_changed (PropertyChange (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged)); return RegionEditor::on_delete_event (ev); }