From af034f1c67ff558d2c8501c2dbe522649fea6221 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Dec 2011 02:13:47 +0000 Subject: Make canvas direction a property. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3835 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') 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); } } -- cgit v1.2.1