summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-02 08:17:20 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-02 08:17:20 -0400
commit3835b782b370940ba1c96bcb212338e86e30e590 (patch)
treec020f87fd52b80b4de21dbfe77ff454a7245c32c /gtk2_ardour/editor.cc
parentbac7a13d0f5866ce6e771616f9faf8fb9fc73260 (diff)
part three of using LocaleGuard with pane sizes
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc26
1 files changed, 15 insertions, 11 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 05146077e2..69b6314639 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -726,19 +726,23 @@ Editor::Editor ()
float fract;
- 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);
- } else {
- edit_pane.set_divider (0, fract);
- }
+ {
+ LocaleGuard lg;
- if (!settings || ((prop = settings->property ("edit-vertical-pane-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
- /* initial allocation is 90% to canvas, 10% to summary */
- editor_summary_pane.set_divider (0, 0.90);
- } else {
+ 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);
+ } else {
+ edit_pane.set_divider (0, fract);
+ }
+
+ if (!settings || ((prop = settings->property ("edit-vertical-pane-pos")) == 0) || ((fract = atof (prop->value())) > 1.0)) {
+ /* initial allocation is 90% to canvas, 10% to summary */
+ editor_summary_pane.set_divider (0, 0.90);
+ } else {
- editor_summary_pane.set_divider (0, fract);
+ editor_summary_pane.set_divider (0, fract);
+ }
}
top_hbox.pack_start (toolbar_frame);