Use file modes supported by mingw compiler on Windows
[ardour.git] / gtk2_ardour / mixer_actor.cc
index b309b9fd7f7d58fa44c9f3575747a17dcd188e10..8a90a3a1dd2e698882be2937d62584f872a838c8 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <boost/foreach.hpp>
 
-#include "pbd/filesystem.h"
 #include "pbd/file_utils.h"
-#include "pbd/search_path.h"
 #include "pbd/error.h"
 
 #include "ardour/filesystem_paths.h"
 
 #include "i18n.h"
 
+#ifdef SearchPath
+#undef SearchPath
+#endif
+
 using namespace ARDOUR;
 using namespace Gtk;
 using namespace PBD;
@@ -73,6 +75,9 @@ MixerActor::register_actions ()
 
        myactions.register_action ("Mixer", "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_left));
        myactions.register_action ("Mixer", "scroll-right", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_right));
+
+       myactions.register_action ("Mixer", "toggle-midi-input-active", _("Toggle MIDI Input Active for Mixer-Selected Tracks/Busses"), 
+                                  sigc::bind (sigc::mem_fun (*this, &MixerActor::toggle_midi_input_active), false));
 }
 
 void
@@ -82,14 +87,13 @@ MixerActor::load_bindings ()
        
         bindings.set_action_map (myactions);
 
-       sys::path binding_file;
-       SearchPath spath = ardour_search_path() + user_config_directory() + system_config_search_path();
+       std::string binding_file;
 
-       if (find_file_in_search_path (spath, "mixer.bindings", binding_file)) {
-                bindings.load (binding_file.to_string());
-               info << string_compose (_("Loaded mixer bindings from %1"), binding_file.to_string()) << endmsg;
+       if (find_file_in_search_path (ardour_config_search_path(), "mixer.bindings", binding_file)) {
+                bindings.load (binding_file);
+               info << string_compose (_("Loaded mixer bindings from %1"), binding_file) << endmsg;
         } else {
-               error << string_compose (_("Could not find mixer.bindings in search path %1"), spath.to_string()) << endmsg;
+               error << string_compose (_("Could not find mixer.bindings in search path %1"), ardour_config_search_path().to_string()) << endmsg;
        }
 }
 
@@ -264,3 +268,4 @@ MixerActor::ab_plugins ()
                }
        }
 }
+