Use a C++ bool constant
[ardour.git] / libs / canvas / canvas.cc
index a166c23521f1aca0d37eceefd61858050c84dea2..22c586090ed123d6a907af4a78b361c23c828821 100644 (file)
@@ -32,6 +32,8 @@
 #include <gtkmm/label.h>
 #include <gtkmm/window.h>
 
+#include "gtkmm2ext/persistent_tooltip.h"
+
 #include "pbd/compose.h"
 #include "pbd/stacktrace.h"
 
@@ -1145,7 +1147,7 @@ GtkCanvas::start_tooltip_timeout (Item* item)
 {
        stop_tooltip_timeout ();
 
-       if (item) {
+       if (item && Gtkmm2ext::PersistentTooltip::tooltips_enabled ()) {
                current_tooltip_item = item;
 
                /* wait for the first idle that happens after this is