summaryrefslogtreecommitdiff
path: root/gtk2_ardour/actions.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-12-06 06:23:50 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-12-06 06:23:50 +0000
commit32664137bd276735ed4a07b205a12da2f9cbef28 (patch)
treecb41c81ffc6787b5049d44a4370da6f31e3b7a1b /gtk2_ardour/actions.cc
parent79650335d11f2b3c0a0ae51ad971a36cdb28c108 (diff)
more fixes
git-svn-id: svn://localhost/trunk/ardour2@172 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/actions.cc')
-rw-r--r--gtk2_ardour/actions.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc
index 8a50451cb5..714159a61d 100644
--- a/gtk2_ardour/actions.cc
+++ b/gtk2_ardour/actions.cc
@@ -194,30 +194,27 @@ ActionManager::get_widget (ustring name)
RefPtr<Action>
ActionManager::get_action (ustring name)
{
- // ListHandle<RefPtr<ActionGroup> > uim_groups = ui_manager->get_action_groups ();
+ /* the C++ API for functions used here appears to be broken in
+ gtkmm2.6, so we fall back to the C level.
+ */
+
GList* list = gtk_ui_manager_get_action_groups (ui_manager->gobj());
GList* node;
RefPtr<Action> act;
if (name.substr (0,9) != "<Actions>") {
- cerr << "badly specified action name" << endl;
+ error << "badly specified action name: " << name << endmsg;
return act;
}
ustring::size_type last_slash = name.find_last_of ('/');
ustring group_name = name.substr (10, last_slash - 10);
- cerr << "group name = " << group_name << endl;
ustring action_name = name.substr (last_slash+1);
- cerr << "action name = " << action_name << endl;
-
- cerr << "there are " << g_list_length (list) << " action roups\n";
for (node = list; node; node = g_list_next (node)) {
GtkActionGroup* _ag = (GtkActionGroup*) node->data;
- cerr << "\tchecking in " << gtk_action_group_get_name (_ag) << endl;
-
if (group_name == gtk_action_group_get_name (_ag)) {
GtkAction* _act;