summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-03-03 12:02:35 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:39 -0400
commit4d87503863066272867eed922b966cf08ed1c815 (patch)
tree6fdbcc0e4bbdb19376a781e6ce7aa3a4bb82083e /gtk2_ardour
parent419c7e95f3fad3c6eaf6906ba05e9bc7e3944e08 (diff)
fix restoration of editor pane positions
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index c5d99c69bf..ab9ac43b28 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -3913,7 +3913,7 @@ Editor::pane_allocation_handler (Allocation &alloc, Paned* which)
int pos;
XMLProperty const * prop;
char buf[32];
- XMLNode* node = ARDOUR_UI::instance()->editor_settings();
+ XMLNode* geometry = ARDOUR_UI::instance()->editor_settings();
enum Pane {
Horizontal = 0x1,
@@ -3922,8 +3922,6 @@ Editor::pane_allocation_handler (Allocation &alloc, Paned* which)
static Pane done;
- XMLNode* geometry = find_named_node (*node, "geometry");
-
if (which == static_cast<Paned*> (&edit_pane)) {
if (done & Horizontal) {
@@ -3942,7 +3940,7 @@ Editor::pane_allocation_handler (Allocation &alloc, Paned* which)
pos = atoi (prop->value());
}
- if (GTK_WIDGET(edit_pane.gobj())->allocation.width > pos) {
+ if (edit_pane.get_allocation().get_width() > pos) {
edit_pane.set_position (pos);
}
@@ -3963,7 +3961,7 @@ Editor::pane_allocation_handler (Allocation &alloc, Paned* which)
pos = atoi (prop->value());
}
- if (GTK_WIDGET(editor_summary_pane.gobj())->allocation.height > pos) {
+ if (editor_summary_pane.get_allocation().get_height() > pos) {
editor_summary_pane.set_position (pos);
}