show what PresentationInfo::Change is being used for
This commit is contained in:
parent
155b1dc4c8
commit
4821def173
@ -26,6 +26,7 @@
|
|||||||
#include "pbd/enumwriter.h"
|
#include "pbd/enumwriter.h"
|
||||||
#include "pbd/error.h"
|
#include "pbd/error.h"
|
||||||
#include "pbd/failed_constructor.h"
|
#include "pbd/failed_constructor.h"
|
||||||
|
#include "pbd/stacktrace.h"
|
||||||
#include "pbd/xml++.h"
|
#include "pbd/xml++.h"
|
||||||
|
|
||||||
#include "ardour/presentation_info.h"
|
#include "ardour/presentation_info.h"
|
||||||
@ -66,10 +67,19 @@ PresentationInfo::unsuspend_change_signal ()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (g_atomic_int_dec_and_test (const_cast<gint*> (&_change_signal_suspended))) {
|
if (g_atomic_int_dec_and_test (const_cast<gint*> (&_change_signal_suspended))) {
|
||||||
|
if (!pc.empty()) {
|
||||||
_pending_static_changes.clear ();
|
_pending_static_changes.clear ();
|
||||||
|
|
||||||
|
std::cerr << "PI change (unsuspended): ";
|
||||||
|
for (PropertyChange::const_iterator x = pc.begin(); x != pc.end(); ++x) {
|
||||||
|
std::cerr << g_quark_to_string (*x) << ',';
|
||||||
|
}
|
||||||
|
std::cerr << '\n';
|
||||||
|
|
||||||
Change (pc); /* EMIT SIGNAL */
|
Change (pc); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PresentationInfo::send_static_change (const PropertyChange& what_changed)
|
PresentationInfo::send_static_change (const PropertyChange& what_changed)
|
||||||
@ -83,6 +93,12 @@ PresentationInfo::send_static_change (const PropertyChange& what_changed)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cerr << "PI change (direct): ";
|
||||||
|
for (PropertyChange::const_iterator x = what_changed.begin(); x != what_changed.end(); ++x) {
|
||||||
|
std::cerr << g_quark_to_string (*x) << ',';
|
||||||
|
}
|
||||||
|
std::cerr << '\n';
|
||||||
|
|
||||||
Change (what_changed);
|
Change (what_changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user