provide a non-hard-coded menu file name to ActionManager when loading menus
This commit is contained in:
parent
01af11c25c
commit
59cdb46c2f
@ -72,11 +72,11 @@ ActionManager::init ()
|
||||
}
|
||||
|
||||
void
|
||||
ActionManager::load_menus ()
|
||||
ActionManager::load_menus (const string& menus_file)
|
||||
{
|
||||
std::string ui_file;
|
||||
|
||||
find_file_in_search_path (ardour_config_search_path(), "ardour.menus", ui_file);
|
||||
find_file_in_search_path (ardour_config_search_path(), menus_file, ui_file);
|
||||
|
||||
bool loaded = false;
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace ActionManager {
|
||||
/* Ardour specific */
|
||||
|
||||
extern void init ();
|
||||
extern void load_menus ();
|
||||
extern void load_menus (const std::string& menus_file_name); /* not path, just name */
|
||||
|
||||
extern std::vector<Glib::RefPtr<Gtk::Action> > session_sensitive_actions;
|
||||
extern std::vector<Glib::RefPtr<Gtk::Action> > write_sensitive_actions;
|
||||
|
Loading…
Reference in New Issue
Block a user