diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-01-05 12:32:14 +0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-16 16:55:17 -0400 |
commit | 1d42ed077e555a83a93bac436547e7c378ee0c00 (patch) | |
tree | ae50cb81adaa7a6b321acd687c0d27c60f3da571 /gtk2_ardour/region_editor.cc | |
parent | 2031007a3a6a2c47ec6c4dd5270afd5dc7a53de4 (diff) |
Use ARDOUR_UI_UTILS::set_tooltip rather than via ARDOUR_UI::set_tip
This removes the direct dependence on ARDOUR_UI/Gtk_UI for setting
tooltips. Removes inclusion of ardour_ui.h from 16 files.
Diffstat (limited to 'gtk2_ardour/region_editor.cc')
-rw-r--r-- | gtk2_ardour/region_editor.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/region_editor.cc b/gtk2_ardour/region_editor.cc index e41e012ce6..725e5c33dd 100644 --- a/gtk2_ardour/region_editor.cc +++ b/gtk2_ardour/region_editor.cc @@ -34,6 +34,7 @@ #include "gui_thread.h" #include "region_editor.h" #include "public_editor.h" +#include "tooltips.h" #include "i18n.h" @@ -41,6 +42,7 @@ using namespace ARDOUR; using namespace PBD; using namespace std; using namespace Gtkmm2ext; +using namespace ARDOUR_UI_UTILS; RegionEditor::RegionEditor (Session* s, boost::shared_ptr<Region> r) : ArdourDialog (_("Region")) @@ -76,7 +78,7 @@ RegionEditor::RegionEditor (Session* s, boost::shared_ptr<Region> r) sync_offset_absolute_clock.set_session (_session); start_clock.set_session (_session); - ARDOUR_UI::instance()->set_tip (audition_button, _("audition this region")); + set_tooltip (audition_button, _("audition this region")); audition_button.unset_flags (Gtk::CAN_FOCUS); |