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.
This commit is contained in:
Tim Mayberry 2015-01-05 12:32:14 +07:00 committed by Paul Davis
parent 2031007a3a
commit 1d42ed077e
25 changed files with 166 additions and 154 deletions

View file

@ -27,11 +27,12 @@
#include "gtkmm2ext/utils.h"
#include "gtkmm2ext/rgb_macros.h"
#include "ardour_ui.h"
#include "button_joiner.h"
#include "tooltips.h"
#include "ui_config.h"
using namespace Gtk;
using namespace ARDOUR_UI_UTILS;
ButtonJoiner::ButtonJoiner (const std::string& str, Gtk::Widget& lw, Gtk::Widget& rw, bool central_joiner)
: left (lw)
@ -219,7 +220,7 @@ void
ButtonJoiner::action_tooltip_changed ()
{
std::string str = _action->property_tooltip().get_value();
ARDOUR_UI::instance()->set_tip (*this, str);
set_tooltip (*this, str);
}
void