diff options
-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"> |