diff --git a/libs/gtkmm2ext/actions.cc b/libs/gtkmm2ext/actions.cc index ff9ede3f14..d0fc849189 100644 --- a/libs/gtkmm2ext/actions.cc +++ b/libs/gtkmm2ext/actions.cc @@ -41,6 +41,7 @@ #include "pbd/stacktrace.h" #include "gtkmm2ext/actions.h" +#include "gtkmm2ext/debug.h" #include "gtkmm2ext/utils.h" #include "pbd/i18n.h" @@ -391,6 +392,7 @@ ActionManager::register_action (RefPtr group, const char* name, con string fullpath; RefPtr act = Action::create (name, label); + DEBUG_TRACE (PBD::DEBUG::Actions, string_compose ("created action %1 in %2 success: %3\n", name, group->get_name(), (bool) act)); fullpath = group->get_name(); fullpath += '/'; @@ -413,6 +415,7 @@ ActionManager::register_action (RefPtr group, string fullpath; RefPtr act = Action::create (name, label); + DEBUG_TRACE (PBD::DEBUG::Actions, string_compose ("created action %1 in %2 success: %3\n", name, group->get_name(), (bool) act)); fullpath = group->get_name(); fullpath += '/'; @@ -436,6 +439,7 @@ ActionManager::register_radio_action (RefPtr group, string fullpath; RefPtr act = RadioAction::create (rgroup, name, label); + DEBUG_TRACE (PBD::DEBUG::Actions, string_compose ("created action %1 in %2 success: %3\n", name, group->get_name(), (bool) act)); RefPtr ract = RefPtr::cast_dynamic(act); fullpath = group->get_name(); @@ -461,6 +465,7 @@ ActionManager::register_radio_action (RefPtr group, string fullpath; RefPtr act = RadioAction::create (rgroup, name, label); + DEBUG_TRACE (PBD::DEBUG::Actions, string_compose ("created radio-action %1 in %2 success: %3\n", name, group->get_name(), (bool) act)); RefPtr ract = RefPtr::cast_dynamic(act); ract->property_value() = value; @@ -489,6 +494,7 @@ ActionManager::register_toggle_action (RefPtr group, fullpath += name; RefPtr act = ToggleAction::create (name, label); + DEBUG_TRACE (PBD::DEBUG::Actions, string_compose ("created action %1 in %2 success: %2\n", name, group->get_name(), (bool) act)); if (actions.insert (ActionMap::value_type (fullpath, act)).second) { group->add (act, sl); diff --git a/libs/gtkmm2ext/debug.cc b/libs/gtkmm2ext/debug.cc index 265f073f85..eecb3ac068 100644 --- a/libs/gtkmm2ext/debug.cc +++ b/libs/gtkmm2ext/debug.cc @@ -22,3 +22,4 @@ PBD::DebugBits PBD::DEBUG::Keyboard = PBD::new_debug_bit ("keyboard"); PBD::DebugBits PBD::DEBUG::Bindings = PBD::new_debug_bit ("bindings"); +PBD::DebugBits PBD::DEBUG::Actions = PBD::new_debug_bit ("actions"); diff --git a/libs/gtkmm2ext/gtkmm2ext/debug.h b/libs/gtkmm2ext/gtkmm2ext/debug.h index a4f813a1d6..18f5f29b98 100644 --- a/libs/gtkmm2ext/gtkmm2ext/debug.h +++ b/libs/gtkmm2ext/gtkmm2ext/debug.h @@ -29,6 +29,7 @@ namespace PBD { namespace DEBUG { LIBGTKMM2EXT_API extern DebugBits Keyboard; LIBGTKMM2EXT_API extern DebugBits Bindings; + LIBGTKMM2EXT_API extern DebugBits Actions; } }