13
0

part three of using LocaleGuard with pane sizes

This commit is contained in:
Paul Davis 2016-06-02 08:17:20 -04:00
parent bac7a13d0f
commit 3835b782b3
2 changed files with 38 additions and 30 deletions

View File

@ -726,6 +726,9 @@ Editor::Editor ()
float fract;
{
LocaleGuard lg;
if (!settings || ((prop = settings->property ("edit-horizontal-pane-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
/* initial allocation is 90% to canvas, 10% to notebook */
edit_pane.set_divider (0, 0.90);
@ -740,6 +743,7 @@ Editor::Editor ()
editor_summary_pane.set_divider (0, fract);
}
}
top_hbox.pack_start (toolbar_frame);

View File

@ -267,6 +267,9 @@ Mixer_UI::Mixer_UI ()
XMLProperty const * prop;
float fract;
{
LocaleGuard lg;
if (!settings || ((prop = settings->property ("mixer-rhs-pane1-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
rhs_pane1.set_divider (0, 0.6f);
} else {
@ -287,6 +290,7 @@ Mixer_UI::Mixer_UI ()
} else {
inner_pane.set_divider (0, atof (prop->value()));
}
}
rhs_pane1.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);
rhs_pane2.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);