diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-04-29 23:14:58 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-16 16:55:17 -0400 |
commit | 69b44ee82904744bd4e9ed6801ca9d0c42a49738 (patch) | |
tree | c7ba8648c8fab890f9de0b9607ceea8096af638b /gtk2_ardour/ardour_button.cc | |
parent | 1d42ed077e555a83a93bac436547e7c378ee0c00 (diff) |
Use tooltips.h in ArdourButton to remove ardour_ui.h inclusion
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 7fbc0f0d48..756f8dfc94 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -24,6 +24,7 @@ #include <pangomm/layout.h> #include "pbd/compose.h" +#include "pbd/controllable.h" #include "pbd/error.h" #include "pbd/stacktrace.h" @@ -35,7 +36,7 @@ #include "canvas/colors.h" #include "ardour_button.h" -#include "ardour_ui.h" +#include "tooltips.h" #include "ui_config.h" #include "i18n.h" @@ -47,6 +48,7 @@ using namespace Gdk; using namespace Gtk; using namespace Glib; using namespace PBD; +using namespace ARDOUR_UI_UTILS; using std::max; using std::min; using namespace std; @@ -1109,7 +1111,7 @@ void ArdourButton::action_tooltip_changed () { string str = _action->property_tooltip().get_value(); - ARDOUR_UI::instance()->set_tip (*this, str); + set_tooltip (*this, str); } void |