diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-05 01:03:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-05 01:03:36 +0000 |
commit | eaf58fdd50a79aa4fa2760ca5dbeb2dd4cda2e15 (patch) | |
tree | 26a12ee6caeaccedd2859a4401fd4f3d7eacaa8b /gtk2_ardour/engine_dialog.cc | |
parent | 9b2e242cb5cad2340e8dd1008b8bf3f0ce70c12f (diff) |
Marginal cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@12565 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/engine_dialog.cc')
-rw-r--r-- | gtk2_ardour/engine_dialog.cc | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index de613f3cf4..6fe514b991 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -172,41 +172,35 @@ EngineControl::EngineControl () row = 0; - label = manage (new Label (_("Driver:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Driver:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (driver_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; - label = manage (new Label (_("Audio Interface:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Audio Interface:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (interface_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; - label = manage (new Label (_("Sample rate:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Sample rate:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (sample_rate_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; - label = manage (new Label (_("Buffer size:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Buffer size:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (period_size_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; #ifndef __APPLE__ - label = manage (new Label (_("Number of buffers:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Number of buffers:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (periods_spinner, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); periods_spinner.set_value (2); row++; #endif - label = manage (new Label (_("Approximate latency:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Approximate latency:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (latency_label, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; @@ -219,8 +213,7 @@ EngineControl::EngineControl () /* no audio mode with CoreAudio, its duplex or nuthin' */ #ifndef __APPLE__ - label = manage (new Label (_("Audio mode:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Audio mode:"))); basic_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); basic_packer.attach (audio_mode_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); row++; @@ -306,21 +299,18 @@ EngineControl::EngineControl () ++row; #endif /* PROVIDE_TOO_MANY_OPTIONS */ - label = manage (new Label (_("Number of ports:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Number of ports:"))); options_packer.attach (ports_spinner, 1, 2, row, row + 1, FILL|EXPAND, AttachOptions(0)); options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); ++row; - label = manage (new Label (_("MIDI driver:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("MIDI driver:"))); options_packer.attach (midi_driver_combo, 1, 2, row, row + 1, FILL|EXPAND, AttachOptions(0)); options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); ++row; #ifndef __APPLE__ - label = manage (new Label (_("Dither:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Dither:"))); options_packer.attach (dither_mode_combo, 1, 2, row, row + 1, FILL|EXPAND, AttachOptions(0)); options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); ++row; @@ -337,9 +327,8 @@ EngineControl::EngineControl () serverpath_combo.set_active_text (server_strings.front()); if (server_strings.size() > 1) { - label = manage (new Label (_("Server:"))); + label = manage (left_aligned_label (_("Server:"))); options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0); - label->set_alignment (0.0, 0.5); options_packer.attach (serverpath_combo, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0); ++row; } @@ -350,31 +339,25 @@ EngineControl::EngineControl () row = 0; #ifndef __APPLE__ - label = manage (new Label (_("Input device:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Input device:"))); device_packer.attach (*label, 0, 1, row, row+1, FILL|EXPAND, (AttachOptions) 0); device_packer.attach (input_device_combo, 1, 2, row, row+1, FILL|EXPAND, (AttachOptions) 0); ++row; - label = manage (new Label (_("Output device:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Output device:"))); device_packer.attach (*label, 0, 1, row, row+1, FILL|EXPAND, (AttachOptions) 0); device_packer.attach (output_device_combo, 1, 2, row, row+1, FILL|EXPAND, (AttachOptions) 0); ++row; #endif - label = manage (new Label (_("Hardware input latency:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Hardware input latency:"))); device_packer.attach (*label, 0, 1, row, row+1, FILL|EXPAND, (AttachOptions) 0); device_packer.attach (input_latency, 1, 2, row, row+1, FILL|EXPAND, (AttachOptions) 0); - label = manage (new Label (_("samples"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("samples"))); device_packer.attach (*label, 2, 3, row, row+1, FILL|EXPAND, (AttachOptions) 0); ++row; - label = manage (new Label (_("Hardware output latency:"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("Hardware output latency:"))); device_packer.attach (*label, 0, 1, row, row+1, FILL|EXPAND, (AttachOptions) 0); device_packer.attach (output_latency, 1, 2, row, row+1, FILL|EXPAND, (AttachOptions) 0); - label = manage (new Label (_("samples"))); - label->set_alignment (0, 0.5); + label = manage (left_aligned_label (_("samples"))); device_packer.attach (*label, 2, 3, row, row+1, FILL|EXPAND, (AttachOptions) 0); ++row; |