X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fpanner2d.cc;h=9697cb3a6091d83e46824e82a3f17d61cbdf043f;hb=727613b4b744658b6a32916a82af2717cd54c11d;hp=a5c0830fc75b826eb89577db9a97f7891659e49f;hpb=fc1e7dbb55939c708ce572d3a5c2518ea926a682;p=ardour.git diff --git a/gtk2_ardour/panner2d.cc b/gtk2_ardour/panner2d.cc index a5c0830fc7..9697cb3a60 100644 --- a/gtk2_ardour/panner2d.cc +++ b/gtk2_ardour/panner2d.cc @@ -35,15 +35,15 @@ #include "canvas/colors.h" -#include "ardour_ui.h" #include "panner2d.h" #include "keyboard.h" #include "gui_thread.h" #include "rgb_macros.h" #include "utils.h" #include "public_editor.h" +#include "ui_config.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace Gtk; @@ -90,7 +90,7 @@ Panner2d::Panner2d (boost::shared_ptr p, int32_t h) have_colors = true; } - UIConfiguration::ColorsChanged.connect (sigc::mem_fun (*this, &Panner2d::color_handler)); + UIConfiguration::instance().ColorsChanged.connect (sigc::mem_fun (*this, &Panner2d::color_handler)); panner_shell->Changed.connect (panshell_connections, invalidator (*this), boost::bind (&Panner2d::handle_state_change, this), gui_context()); @@ -114,7 +114,7 @@ void Panner2d::set_colors () { // TODO get all colors from theme, resolve dups - colors.background = ARDOUR_UI::config()->color ("mono panner bg"); + colors.background = UIConfiguration::instance().color ("mono panner bg"); colors.crosshairs = 0x4884a9ff; // 0.282, 0.517, 0.662, 1.0 colors.signalcircle_border = 0x84c5e1ff; // 0.517, 0.772, 0.882, 1.0 colors.signalcircle = 0x4884a9ff; // 0.282, 0.517, 0.662, 1.0 // also used with a = 0.9 @@ -470,7 +470,7 @@ Panner2d::on_expose_event (GdkEventExpose *event) uint32_t bg = colors.background; if (_send_mode) { - bg = ARDOUR_UI::config()->color ("send bg"); + bg = UIConfiguration::instance().color ("send bg"); } if (!panner_shell->bypassed()) { @@ -1013,7 +1013,7 @@ Panner2dWindow::set_width () bool Panner2dWindow::on_key_press_event (GdkEventKey* event) { - return relay_key_press (event, &PublicEditor::instance()); + return relay_key_press (event, this); } bool