From 997076f3d45274f3c1d5747a95e8fe6bac33abba Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Jan 2008 17:53:38 +0000 Subject: Fix canvas scroll buttons. git-svn-id: http://svn.drobilla.net/lad/machina@1007 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaCanvas.cpp | 2 -- src/gui/MachinaGUI.cpp | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index 04053a5..2a99c8d 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -157,8 +157,6 @@ MachinaCanvas::create_node_view(SharedPtr node) void MachinaCanvas::build(SharedPtr machine, bool show_labels) { - cout << "BUILDING " << machine.get() << endl; - destroy(); _last_clicked.reset(); assert(_items.empty()); diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index c6ecfc0..2af30b5 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -95,6 +95,9 @@ MachinaGUI::MachinaGUI(SharedPtr engine) _canvas->scroll_to(static_cast(_canvas->width()/2 - 320), static_cast(_canvas->height()/2 - 240)); // FIXME: hardcoded + _canvas_scrolledwindow->property_hadjustment().get_value()->set_step_increment(10); + _canvas_scrolledwindow->property_vadjustment().get_value()->set_step_increment(10); + _record_button->signal_toggled().connect(sigc::mem_fun(this, &MachinaGUI::record_toggled)); _stop_button->signal_clicked().connect(sigc::mem_fun(this, &MachinaGUI::stop_clicked)); _play_button->signal_toggled().connect(sigc::mem_fun(this, &MachinaGUI::play_toggled)); -- cgit v1.2.1