diff options
author | David Robillard <d@drobilla.net> | 2009-08-11 18:23:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-08-11 18:23:53 +0000 |
commit | 888c3b95380952edf547dac8545d20b5819c2f34 (patch) | |
tree | 2a05d1b1d91a642e5b2bf45c1812ba2a51656cf3 | |
parent | a3daf5543693a6f7f945e0568d59877bd06689fc (diff) | |
download | patchage-888c3b95380952edf547dac8545d20b5819c2f34.tar.gz patchage-888c3b95380952edf547dac8545d20b5819c2f34.tar.bz2 patchage-888c3b95380952edf547dac8545d20b5819c2f34.zip |
Scroll to center properly on initial display.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2176 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Patchage.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 9054547..22c52fb 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -161,8 +161,6 @@ Patchage::Patchage(int argc, char** argv) gtkmm_set_width_for_given_text(*_buffer_size_combo, "4096 frames", 40); _main_scrolledwin->add(*_canvas); - _canvas->scroll_to(static_cast<int>(_canvas->width()/2 - 320), - static_cast<int>(_canvas->height()/2 - 240)); // FIXME: hardcoded _main_scrolledwin->property_hadjustment().get_value()->set_step_increment(10); _main_scrolledwin->property_vadjustment().get_value()->set_step_increment(10); @@ -310,8 +308,6 @@ Patchage::attach() refresh(); update_toolbar(); - - //m_status_bar->push("Connected to JACK server"); } @@ -321,6 +317,7 @@ Patchage::idle_callback() // Initial run, attach if (_attach) { attach(); + _canvas->scroll_to_center(); _attach = false; } @@ -680,7 +677,6 @@ Patchage::on_view_toolbar() bool Patchage::on_scroll(GdkEventScroll* ev) { - cout << "ON SCROLL" << endl; return false; } |