summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-11-14 23:23:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-11-14 23:23:53 +0000
commit60f85cac42cdad6603869ffe9c2da9a8dc9a6f61 (patch)
tree37d49c15ce56dfbb2ded9225dc7ecb9cae727384 /gtk2_ardour/editor_actions.cc
parentff4ea9346b69c70336fbdfa81cf235d526cbd9d6 (diff)
provide the ability to enable + disable tooltips
git-svn-id: svn://localhost/ardour2/branches/3.0@13505 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index a8b9f0da0c..b2f11bb367 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -23,6 +23,7 @@
#include "pbd/file_utils.h"
#include "gtkmm2ext/tearoff.h"
+#include "gtkmm2ext/utils.h"
#include "ardour/filesystem_paths.h"
#include "ardour/profile.h"
@@ -1489,6 +1490,15 @@ Editor::parameter_changed (std::string p)
if (_routes) {
_routes->reset_remote_control_ids ();
}
+ } else if (p == "use-tooltips") {
+
+ /* this doesn't really belong here but it has to go somewhere */
+
+ if (Config->get_use_tooltips()) {
+ Gtkmm2ext::enable_tooltips ();
+ } else {
+ Gtkmm2ext::disable_tooltips ();
+ }
}
}