summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-07-18 02:27:07 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-07-18 02:27:07 +0000
commit3e1a097180afc0a2275ed36ad91a59af35731ddf (patch)
tree9d9fad680ae3abba811022c477e2649cc31c38af /gtk2_ardour/mixer_ui.h
parentf542fa693cef524c066d9bf632ac6c12263d8fe6 (diff)
Restore position of the mixer window when it is reopened. #1277
git-svn-id: svn://localhost/ardour2/trunk@2141 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_ui.h')
-rw-r--r--gtk2_ardour/mixer_ui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_ui.h b/gtk2_ardour/mixer_ui.h
index 2851763ba5..3c9355efb7 100644
--- a/gtk2_ardour/mixer_ui.h
+++ b/gtk2_ardour/mixer_ui.h
@@ -102,6 +102,12 @@ class Mixer_UI : public Gtk::Window
Gtk::HBox out_packer;
Gtk::HPaned list_hpane;
+ // for restoring window geometry.
+ int m_root_x, m_root_y, m_width, m_height;
+
+ void set_window_pos_and_size ();
+ void get_window_pos_and_size ();
+
bool on_key_press_event (GdkEventKey*);
void pane_allocation_handler (Gtk::Allocation&, Gtk::Paned*);