From 54e01f4e48739590e25ea8448a5a80a1b95e8cec Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Apr 2016 01:06:01 +0200 Subject: towards fixing optional tooltips Editor::parameter_changed() is not called for UIConfig changes. "use-tooltips" was never triggered. --- gtk2_ardour/ardour_ui_options.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gtk2_ardour/ardour_ui_options.cc') diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index a0e6384b23..1707ac8154 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -394,6 +394,13 @@ ARDOUR_UI::parameter_changed (std::string p) stop_clocking (); start_clocking (); } + } else if (p == "use-tooltips") { + /* this doesn't really belong here but it has to go somewhere */ + if (UIConfiguration::instance().get_use_tooltips()) { + Gtkmm2ext::enable_tooltips (); + } else { + Gtkmm2ext::disable_tooltips (); + } } else if (p == "waveform-gradient-depth") { ArdourCanvas::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth()); } else if (p == "show-editor-meter") { -- cgit v1.2.3