diff options
author | David Robillard <d@drobilla.net> | 2006-10-14 15:29:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-14 15:29:58 +0000 |
commit | 1c8e310ef4f53b46f56ba552c15a9e5cb3985108 (patch) | |
tree | 48e07b28d4e5f0e13d7891430f868991d68431de /src/Patchage.cpp | |
parent | 5cb3a78c84c5f82421825ee6de507f2cdad5f654 (diff) | |
download | patchage-1c8e310ef4f53b46f56ba552c15a9e5cb3985108.tar.gz patchage-1c8e310ef4f53b46f56ba552c15a9e5cb3985108.tar.bz2 patchage-1c8e310ef4f53b46f56ba552c15a9e5cb3985108.zip |
Fixed initial visibility
git-svn-id: http://svn.drobilla.net/lad/patchage@167 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index bf7ad88..24716be 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -111,17 +111,11 @@ Patchage::Patchage(int argc, char** argv) xml->get_widget("zoom_full_but", m_zoom_full_button); xml->get_widget("zoom_normal_but", m_zoom_normal_button); - update_state(); - m_main_paned->set_position(m_main_paned->get_height() - 20); - m_canvas_scrolledwindow->add(*m_canvas); //m_canvas_scrolledwindow->signal_event().connect(sigc::mem_fun(m_canvas, &FlowCanvas::scroll_event_handler)); m_canvas->scroll_to(static_cast<int>(m_canvas->width()/2 - 320), static_cast<int>(m_canvas->height()/2 - 240)); // FIXME: hardcoded - // Idle callback, check if we need to refresh - Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::idle_callback), 100); - m_zoom_slider->signal_value_changed().connect(sigc::mem_fun(this, &Patchage::zoom_changed)); m_zoom_normal_button->signal_clicked().connect(sigc::bind( sigc::mem_fun(this, &Patchage::zoom), 1.0)); @@ -148,7 +142,14 @@ Patchage::Patchage(int argc, char** argv) attach_menu_items(); + update_state(); + m_canvas->show(); + + m_main_paned->set_position(INT_MAX); + + // Idle callback, check if we need to refresh + Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::idle_callback), 100); } |