diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 23:23:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-14 23:23:53 +0000 |
commit | 60f85cac42cdad6603869ffe9c2da9a8dc9a6f61 (patch) | |
tree | 37d49c15ce56dfbb2ded9225dc7ecb9cae727384 /libs/gtkmm2ext/utils.cc | |
parent | ff4ea9346b69c70336fbdfa81cf235d526cbd9d6 (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 'libs/gtkmm2ext/utils.cc')
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index 11c5b90722..c0c7a88362 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -650,3 +650,15 @@ Gtkmm2ext::set_no_tooltip_whatsoever (Gtk::Widget& w) w.property_has_tooltip() = true; w.signal_query_tooltip().connect (sigc::ptr_fun (make_null_tooltip)); } + +void +Gtkmm2ext::enable_tooltips () +{ + gtk_rc_parse_string ("gtk-enable-tooltips = 1"); +} + +void +Gtkmm2ext::disable_tooltips () +{ + gtk_rc_parse_string ("gtk-enable-tooltips = 0"); +} |