summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-02 15:00:41 +0000
committerDavid Robillard <d@drobilla.net>2007-03-02 15:00:41 +0000
commitb8d27f60ac608805968c55e5b83f44c7e45444cf (patch)
treeb818a6d44dadadc388fae15d88cfa33b8ae65114 /src/Patchage.cpp
parent5816e138e53a6aeaaad2d1a36b4072059ff7ce8f (diff)
downloadpatchage-b8d27f60ac608805968c55e5b83f44c7e45444cf.tar.gz
patchage-b8d27f60ac608805968c55e5b83f44c7e45444cf.tar.bz2
patchage-b8d27f60ac608805968c55e5b83f44c7e45444cf.zip
(So far failed) attemps to get patchage messages pane closed on launch.
Work towards action serialization in Machina. git-svn-id: http://svn.drobilla.net/lad/patchage@342 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index a15823f..ce41c47 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -243,23 +243,25 @@ Patchage::Patchage(int argc, char** argv)
_update_pane_position = false;
_main_paned->set_position(max_pane_position());
+
+ _user_pane_position = max_pane_position() - _main_window->get_height()/8;
+ _messages_expander->set_expanded(false);
+ _pane_closed = true;
+
_main_paned->property_position().signal_changed().connect(
sigc::mem_fun(*this, &Patchage::on_pane_position_changed));
_messages_expander->property_expanded().signal_changed().connect(
sigc::mem_fun(*this, &Patchage::on_messages_expander_changed));
-
- _main_paned->set_position(max_pane_position());
- _user_pane_position = max_pane_position() - _main_window->get_height()/8;
- _update_pane_position = true;
- _pane_closed = true;
// Idle callback, check if we need to refresh
Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::idle_callback), 100);
// Faster idle callback to update DSP load progress bar
//Glib::signal_timeout().connect(sigc::mem_fun(this, &Patchage::update_load), 50);
+
+ _update_pane_position = true;
}
@@ -613,6 +615,7 @@ Patchage::on_pane_position_changed()
if (_pane_closed && new_position < max_pane_position()) {
// Auto open
_user_pane_position = new_position;
+ cerr << "FOO\n";
_messages_expander->set_expanded(true);
_pane_closed = false;
_menu_view_messages->set_active(true);