From 44108258cabb0ce56eade7ad7a62420377ba37b1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Dec 2011 18:33:00 +0000 Subject: Remove cruft from public API. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3828 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaCanvas.cpp | 4 +--- src/gui/MachinaGUI.cpp | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index f8c88ac..da03cd9 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -90,10 +90,8 @@ MachinaCanvas::on_event(GdkEvent* event) action_create_node(event->button.x, event->button.y); return true; - - } else { - return Canvas::on_event(event); } + return false; } void diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 6291399..2323f4a 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -97,8 +97,8 @@ MachinaGUI::MachinaGUI(SharedPtr engine) _canvas_scrolledwindow->add(_canvas->widget()); _canvas_scrolledwindow->signal_event().connect(sigc::mem_fun(this, &MachinaGUI::scrolled_window_event)); - _canvas->scroll_to(static_cast(_canvas->width()/2 - 320), - static_cast(_canvas->height()/2 - 240)); // FIXME: hardcoded + _canvas->scroll_to(static_cast(_canvas->get_width()/2.0 - 320), + static_cast(_canvas->get_height()/2.0 - 240)); // FIXME: hardcoded _canvas_scrolledwindow->property_hadjustment().get_value()->set_step_increment(10); _canvas_scrolledwindow->property_vadjustment().get_value()->set_step_increment(10); -- cgit v1.2.1