provide the ability to enable + disable tooltips

git-svn-id: svn://localhost/ardour2/branches/3.0@13505 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-11-14 23:23:53 +00:00
parent ff4ea9346b
commit 60f85cac42
5 changed files with 33 additions and 0 deletions

View file

@ -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 ();
}
}
}