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/location_ui.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/location_ui.cc')
-rw-r--r-- | gtk2_ardour/location_ui.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 3a080191a4..0d61718a61 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -34,6 +34,7 @@ #include "prompter.h" #include "utils.h" #include "public_editor.h" +#include "tooltips.h" #include "ui_config.h" #include "i18n.h" @@ -315,20 +316,20 @@ LocationEditRow::set_location (Location *loc) show_cd_track_details (); } - ARDOUR_UI::instance()->set_tip (remove_button, _("Remove this range")); - ARDOUR_UI::instance()->set_tip (start_clock, _("Start time - middle click to locate here")); - ARDOUR_UI::instance()->set_tip (end_clock, _("End time - middle click to locate here")); - ARDOUR_UI::instance()->set_tip (length_clock, _("Length")); + set_tooltip (remove_button, _("Remove this range")); + set_tooltip (start_clock, _("Start time - middle click to locate here")); + set_tooltip (end_clock, _("End time - middle click to locate here")); + set_tooltip (length_clock, _("Length")); - ARDOUR_UI::instance()->set_tip (start_to_playhead_button, _("Set range start from playhead location")); - ARDOUR_UI::instance()->set_tip (end_to_playhead_button, _("Set range end from playhead location")); + set_tooltip (start_to_playhead_button, _("Set range start from playhead location")); + set_tooltip (end_to_playhead_button, _("Set range end from playhead location")); } else { - ARDOUR_UI::instance()->set_tip (remove_button, _("Remove this marker")); - ARDOUR_UI::instance()->set_tip (start_clock, _("Position - middle click to locate here")); + set_tooltip (remove_button, _("Remove this marker")); + set_tooltip (start_clock, _("Position - middle click to locate here")); - ARDOUR_UI::instance()->set_tip (start_to_playhead_button, _("Set marker time from playhead location")); + set_tooltip (start_to_playhead_button, _("Set marker time from playhead location")); end_clock.hide(); length_clock.hide(); |