part three of using LocaleGuard with pane sizes
This commit is contained in:
parent
bac7a13d0f
commit
3835b782b3
@ -726,6 +726,9 @@ Editor::Editor ()
|
|||||||
|
|
||||||
float fract;
|
float fract;
|
||||||
|
|
||||||
|
{
|
||||||
|
LocaleGuard lg;
|
||||||
|
|
||||||
if (!settings || ((prop = settings->property ("edit-horizontal-pane-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
|
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 */
|
/* initial allocation is 90% to canvas, 10% to notebook */
|
||||||
edit_pane.set_divider (0, 0.90);
|
edit_pane.set_divider (0, 0.90);
|
||||||
@ -740,6 +743,7 @@ Editor::Editor ()
|
|||||||
|
|
||||||
editor_summary_pane.set_divider (0, fract);
|
editor_summary_pane.set_divider (0, fract);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
top_hbox.pack_start (toolbar_frame);
|
top_hbox.pack_start (toolbar_frame);
|
||||||
|
|
||||||
|
@ -267,6 +267,9 @@ Mixer_UI::Mixer_UI ()
|
|||||||
XMLProperty const * prop;
|
XMLProperty const * prop;
|
||||||
float fract;
|
float fract;
|
||||||
|
|
||||||
|
{
|
||||||
|
LocaleGuard lg;
|
||||||
|
|
||||||
if (!settings || ((prop = settings->property ("mixer-rhs-pane1-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
|
if (!settings || ((prop = settings->property ("mixer-rhs-pane1-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
|
||||||
rhs_pane1.set_divider (0, 0.6f);
|
rhs_pane1.set_divider (0, 0.6f);
|
||||||
} else {
|
} else {
|
||||||
@ -287,6 +290,7 @@ Mixer_UI::Mixer_UI ()
|
|||||||
} else {
|
} else {
|
||||||
inner_pane.set_divider (0, atof (prop->value()));
|
inner_pane.set_divider (0, atof (prop->value()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rhs_pane1.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);
|
rhs_pane1.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);
|
||||||
rhs_pane2.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);
|
rhs_pane2.set_drag_cursor (*PublicEditor::instance().cursors()->expand_up_down);
|
||||||
|
Loading…
Reference in New Issue
Block a user