projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add basic concept of an "owner" for an action group, to allow later grouping
[ardour.git]
/
libs
/
gtkmm2ext
/
actions.cc
diff --git
a/libs/gtkmm2ext/actions.cc
b/libs/gtkmm2ext/actions.cc
index edf092d909a0b4a4b800f1ff2bcf6abc05a58968..00d85d35c6cd4c2bf51cccce3c08d624808bf26c 100644
(file)
--- a/
libs/gtkmm2ext/actions.cc
+++ b/
libs/gtkmm2ext/actions.cc
@@
-37,6
+37,7
@@
#include <glibmm/miscutils.h>
#include "pbd/error.h"
#include <glibmm/miscutils.h>
#include "pbd/error.h"
+#include "pbd/stacktrace.h"
#include "gtkmm2ext/actions.h"
#include "gtkmm2ext/utils.h"
#include "gtkmm2ext/actions.h"
#include "gtkmm2ext/utils.h"
@@
-302,6
+303,7
@@
ActionManager::get_action (char const * group_name, char const * action_name, bo
}
cerr << "Failed to find action (2): [" << fullpath << ']' << endl;
}
cerr << "Failed to find action (2): [" << fullpath << ']' << endl;
+ PBD::stacktrace (std::cerr, 20);
return RefPtr<Action>();
}
return RefPtr<Action>();
}
@@
-331,7
+333,7
@@
ActionManager::get_radio_action (char const * group_name, char const * action_na
RefPtr<ActionGroup>
RefPtr<ActionGroup>
-ActionManager::create_action_group (string const & name)
+ActionManager::create_action_group (
void * owner,
string const & name)
{
for (ActionGroups::iterator g = groups.begin(); g != groups.end(); ++g) {
if ((*g)->get_name () == name) {
{
for (ActionGroups::iterator g = groups.begin(); g != groups.end(); ++g) {
if ((*g)->get_name () == name) {
@@
-341,6
+343,7
@@
ActionManager::create_action_group (string const & name)
RefPtr<ActionGroup> g = ActionGroup::create (name);
RefPtr<ActionGroup> g = ActionGroup::create (name);
+ g->set_data (X_("owner"), owner);
groups.push_back (g);
/* this is one of the places where our own Action management code
groups.push_back (g);
/* this is one of the places where our own Action management code