summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-22 23:26:33 +0100
committerRobin Gareus <robin@gareus.org>2015-12-22 23:26:33 +0100
commit11d5b46f8a6f9f380e7e6c24e2fa27f0d900922a (patch)
tree5f14e06e8b96213f332acaa9ccf364f24b15905d /gtk2_ardour
parent7f82eec394fcf7306a7376623ddbe2c8bac2ae2b (diff)
re-arrange default mixer siderbar panes.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_ui.cc19
1 files changed, 7 insertions, 12 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 1f41049384..72e18fed2a 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -211,11 +211,10 @@ Mixer_UI::Mixer_UI ()
favorite_plugins_frame.set_shadow_type (Gtk::SHADOW_IN);
favorite_plugins_frame.add (favorite_plugins_scroller);
- rhs_pane1.pack1 (track_display_frame);
- rhs_pane1.pack2 (group_display_frame);
-
- rhs_pane2.pack1 (favorite_plugins_frame, false, true);
- rhs_pane2.pack2 (rhs_pane1);
+ rhs_pane1.pack1 (favorite_plugins_frame, false, true);
+ rhs_pane1.pack2 (track_display_frame);
+ rhs_pane2.pack1 (rhs_pane1);
+ rhs_pane2.pack2 (group_display_frame);
list_vpacker.pack_start (rhs_pane2, true, true);
@@ -1829,7 +1828,6 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
{
int pos;
XMLProperty* prop = 0;
- char buf[32];
XMLNode* node = ARDOUR_UI::instance()->mixer_settings();
XMLNode* geometry;
int height;
@@ -1854,8 +1852,7 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
}
if (!geometry || (prop = geometry->property("mixer-rhs-pane1-pos")) == 0) {
- pos = height / 2;
- snprintf (buf, sizeof(buf), "%d", pos);
+ pos = height / 3;
} else {
pos = atoi (prop->value());
}
@@ -1870,8 +1867,7 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
}
if (!geometry || (prop = geometry->property("mixer-rhs-pane2-pos")) == 0) {
- pos = height / 4;
- snprintf (buf, sizeof(buf), "%d", pos);
+ pos = 2 * height / 3;
} else {
pos = atoi (prop->value());
}
@@ -1886,8 +1882,7 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
}
if (!geometry || (prop = geometry->property("mixer-list-hpane-pos")) == 0) {
- pos = 75;
- snprintf (buf, sizeof(buf), "%d", pos);
+ pos = std::max ((float)100, rintf ((float) 125 * UIConfiguration::instance().get_ui_scale()));
} else {
pos = max (36, atoi (prop->value ()));
}