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 | |
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
-rw-r--r-- | src/Patchage.cpp | 13 | ||||
-rw-r--r-- | src/patchage.glade | 3 |
2 files changed, 8 insertions, 8 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); } 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 @@ <widget class="GtkWindow" id="patchage_win"> <property name="border_width">1</property> - <property name="visible">True</property> <property name="title" translatable="yes">Patchage</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> @@ -536,7 +535,7 @@ <property name="height_request">407</property> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="position">1</property> + <property name="position">1000</property> <child> <widget class="GtkScrolledWindow" id="canvas_scrolledwindow"> |