From b81fdeaa66b140062b2015b63d558a91685bddb5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 1 Nov 2018 23:20:50 +0100 Subject: Work around tooltips in treeviews selection issue #7678 When tooltips are disabled, but a tooltip column is set for a treeview, the treeview selection behaves inconsistently. It requires a 3rd click after expanding any child-rows to select a child. --- gtk2_ardour/session_import_dialog.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/session_import_dialog.cc') diff --git a/gtk2_ardour/session_import_dialog.cc b/gtk2_ardour/session_import_dialog.cc index 775b736076..8c95a33207 100644 --- a/gtk2_ardour/session_import_dialog.cc +++ b/gtk2_ardour/session_import_dialog.cc @@ -35,6 +35,7 @@ #include "gui_thread.h" #include "session_import_dialog.h" +#include "ui_config.h" #include "pbd/i18n.h" @@ -76,10 +77,12 @@ SessionImportDialog::SessionImportDialog (ARDOUR::Session* target) : session_browser.set_name ("SessionBrowser"); session_browser.append_column (_("Elements"), sb_cols.name); session_browser.append_column_editable (_("Import"), sb_cols.queued); - session_browser.set_tooltip_column (3); session_browser.get_column(0)->set_min_width (180); session_browser.get_column(1)->set_min_width (40); session_browser.get_column(1)->set_sizing (TREE_VIEW_COLUMN_AUTOSIZE); + if (UIConfiguration::instance().get_use_tooltips()) { + session_browser.set_tooltip_column (3); + } session_scroll.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC); session_scroll.add (session_browser); -- cgit v1.2.3