mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
use select next/prev stuff on editor track+bus list
git-svn-id: svn://localhost/ardour2/branches/3.0@7851 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
40903b1926
commit
0ff828822f
4 changed files with 38 additions and 7 deletions
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "gtkmm2ext/treeutils.h"
|
||||
|
||||
using namespace Glib;
|
||||
|
|
@ -162,13 +164,15 @@ Gtkmm2ext::treeview_select_next (TreeView& view, RefPtr<TreeModel> model, TreeVi
|
|||
iter = model->get_iter (start);
|
||||
|
||||
TreeRow row = (*iter);
|
||||
bool down_allowed = true;
|
||||
bool down_allowed = false;
|
||||
|
||||
if (!row.children().empty()) {
|
||||
TreePath tp = model->get_path (iter);
|
||||
|
||||
if (!view.row_expanded (tp)) {
|
||||
down_allowed = false;
|
||||
} else {
|
||||
down_allowed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue