From 1c8e310ef4f53b46f56ba552c15a9e5cb3985108 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Oct 2006 15:29:58 +0000 Subject: Fixed initial visibility git-svn-id: http://svn.drobilla.net/lad/patchage@167 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 13 +++++++------ src/patchage.glade | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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(m_canvas->width()/2 - 320), static_cast(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); } diff --git a/src/patchage.glade b/src/patchage.glade index d2aae8c..bfb8130 100644 --- a/src/patchage.glade +++ b/src/patchage.glade @@ -5,7 +5,6 @@ 1 - True Patchage GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE @@ -536,7 +535,7 @@ 407 True True - 1 + 1000 -- cgit v1.2.1