summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-08 02:13:47 +0000
committerDavid Robillard <d@drobilla.net>2011-12-08 02:13:47 +0000
commitaf034f1c67ff558d2c8501c2dbe522649fea6221 (patch)
tree4c49934b7f8252d47ae9368c2f64d659d0a0372c
parente8158f68d8dd77cd7767080ed85a813199c02554 (diff)
downloadingen-af034f1c67ff558d2c8501c2dbe522649fea6221.tar.gz
ingen-af034f1c67ff558d2c8501c2dbe522649fea6221.tar.bz2
ingen-af034f1c67ff558d2c8501c2dbe522649fea6221.zip
Make canvas direction a property.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3835 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/PatchWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp
index cd4b4ab7..e4f737cb 100644
--- a/src/gui/PatchWindow.cpp
+++ b/src/gui/PatchWindow.cpp
@@ -716,10 +716,10 @@ void
PatchWindow::event_port_names_toggled()
{
if (_menu_show_port_names->get_active()) {
- _view->canvas()->set_direction(Canvas::HORIZONTAL);
+ _view->canvas()->set_direction(GANV_DIRECTION_RIGHT);
_view->canvas()->show_port_names(true);
} else {
- _view->canvas()->set_direction(Canvas::VERTICAL);
+ _view->canvas()->set_direction(GANV_DIRECTION_DOWN);
_view->canvas()->show_port_names(false);
}
}