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/processor_box.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/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index a1e066797f..eb52ec074b 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -74,6 +74,7 @@ #include "route_processor_selection.h" #include "send_ui.h" #include "timers.h" +#include "tooltips.h" #include "i18n.h" @@ -322,10 +323,10 @@ ProcessorEntry::setup_tooltip () postfix = string_compose(_("\nThis mono plugin has been replicated %1 times."), replicated); } if (pi->plugin()->has_editor()) { - ARDOUR_UI::instance()->set_tip (_button, + ARDOUR_UI_UTILS::set_tooltip (_button, string_compose (_("<b>%1</b>\nDouble-click to show GUI.\nAlt+double-click to show generic GUI.%2"), name (Wide), postfix)); } else { - ARDOUR_UI::instance()->set_tip (_button, + ARDOUR_UI_UTILS::set_tooltip (_button, string_compose (_("<b>%1</b>\nDouble-click to show generic GUI.%2"), name (Wide), postfix)); } return; @@ -336,7 +337,7 @@ ProcessorEntry::setup_tooltip () return; } } - ARDOUR_UI::instance()->set_tip (_button, string_compose ("<b>%1</b>", name (Wide))); + ARDOUR_UI_UTILS::set_tooltip (_button, string_compose ("<b>%1</b>", name (Wide))); } string @@ -603,7 +604,7 @@ ProcessorEntry::Control::set_tooltip () string sm = Glib::Markup::escape_text (tmp); _slider_persistant_tooltip.set_tip (sm); - ARDOUR_UI::instance()->set_tip (_button, sm); + ARDOUR_UI_UTILS::set_tooltip (_button, sm); } void @@ -1048,7 +1049,7 @@ ProcessorBox::ProcessorBox (ARDOUR::Session* sess, boost::function<PluginSelecto ); } - ARDOUR_UI::instance()->set_tip (processor_display, _("Right-click to add/remove/edit\nplugins,inserts,sends and more")); + ARDOUR_UI_UTILS::set_tooltip (processor_display, _("Right-click to add/remove/edit\nplugins,inserts,sends and more")); } ProcessorBox::~ProcessorBox () |