projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add required virtual method for SrcFileSource
[ardour.git]
/
libs
/
gtkmm2ext
/
actions.cc
diff --git
a/libs/gtkmm2ext/actions.cc
b/libs/gtkmm2ext/actions.cc
index 84a738f278559a84f1a6149327d6e9a8bbaa3abf..200308a254b3bdbafae9b32ed89af930eaf3b115 100644
(file)
--- a/
libs/gtkmm2ext/actions.cc
+++ b/
libs/gtkmm2ext/actions.cc
@@
-27,6
+27,7
@@
#include <gtk/gtkuimanager.h>
#include <gtk/gtkactiongroup.h>
#include <gtk/gtkuimanager.h>
#include <gtk/gtkactiongroup.h>
+#include <gtkmm.h>
#include <gtkmm/accelmap.h>
#include <gtkmm/uimanager.h>
#include <gtkmm/accelmap.h>
#include <gtkmm/uimanager.h>
@@
-265,15
+266,15
@@
ActionManager::get_action (const char* path)
path++;
}
path++;
}
-
char copy[len+1]
;
- strcpy (
copy
, path);
- char* slash = strchr (
copy
, '/');
+
vector<char> copy(len+1)
;
+ strcpy (
©[0]
, path);
+ char* slash = strchr (
©[0]
, '/');
if (!slash) {
return RefPtr<Action> ();
}
*slash = '\0';
if (!slash) {
return RefPtr<Action> ();
}
*slash = '\0';
- return get_action (
copy
, ++slash);
+ return get_action (
©[0]
, ++slash);
}
}