diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-01 23:20:50 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-01 23:21:23 +0100 |
commit | b81fdeaa66b140062b2015b63d558a91685bddb5 (patch) | |
tree | 1a9aa06ac9195ea8af4dac63ddda2353cea301aa /gtk2_ardour/editor_regions.cc | |
parent | fe318c0cd5c9116b512fe90241f3ba0c52841581 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/editor_regions.cc')
-rw-r--r-- | gtk2_ardour/editor_regions.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index b7c86ce8b0..6526d4dec5 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -187,8 +187,10 @@ EditorRegions::EditorRegions (Editor* e) _display.set_headers_visible (true); _display.set_rules_hint (); - /* show path as the row tooltip */ - _display.set_tooltip_column (14); /* path */ + if (UIConfiguration::instance().get_use_tooltips()) { + /* show path as the row tooltip */ + _display.set_tooltip_column (14); /* path */ + } CellRendererText* region_name_cell = dynamic_cast<CellRendererText*>(_display.get_column_cell_renderer (0)); region_name_cell->property_editable() = true; |