Fix editor sizing issue introduced in 4dc65e66
[ardour.git] / gtk2_ardour / ardour_ui_mixer.cc
index a2669f968d92bf86c4fc94f3a13443ad4efceaa9..4f5614e32a0e278ffb9879673833eae5424103e8 100644 (file)
    is to cut down on the nasty compile times for these classes.
 */
 
+#include "gtkmm2ext/keyboard.h"
+
 #include "actions.h"
 #include "ardour_ui.h"
 #include "mixer_ui.h"
 #include "meterbridge.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -39,14 +41,14 @@ ARDOUR_UI::create_mixer ()
 {
        try {
                mixer = Mixer_UI::instance ();
+               mixer->StateChange.connect (sigc::mem_fun (*this, &ARDOUR_UI::tabbable_state_change));
        }
 
        catch (failed_constructor& err) {
                return -1;
        }
 
-       mixer->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), false));
-       mixer->signal_unmap().connect (sigc::bind (sigc::ptr_fun (&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/toggle-mixer")));
+       // mixer->signal_event().connect (sigc::bind (sigc::ptr_fun (&Gtkmm2ext::Keyboard::catch_user_event_for_pre_dialog_focus), mixer));
 
        return 0;
 }
@@ -64,9 +66,6 @@ ARDOUR_UI::create_meterbridge ()
                return -1;
        }
 
-       meterbridge->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), false));
-       meterbridge->signal_unmap().connect (sigc::bind (sigc::ptr_fun (&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/toggle-meterbridge")));
-
        return 0;
 }