summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_info_box.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-06-09 15:44:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-06-09 15:44:09 +0000
commit5b3916c62ec07168b8c554a87241917b06d54fb9 (patch)
treef4cacb95c11e25183558775db3ebb908303836e1 /gtk2_ardour/time_info_box.cc
parent1a2a58fdd61efeff7ae5ebbb699526220bb47a6f (diff)
split style files apart to better maintain consistency (generates a useless error during program startup - thanks GTK); metronome icon for (moved) click button; move punch in/out buttons around
git-svn-id: svn://localhost/ardour2/branches/3.0@9697 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_info_box.cc')
-rw-r--r--gtk2_ardour/time_info_box.cc28
1 files changed, 6 insertions, 22 deletions
diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc
index fe6fe23bc3..fa092ea913 100644
--- a/gtk2_ardour/time_info_box.cc
+++ b/gtk2_ardour/time_info_box.cc
@@ -116,29 +116,8 @@ TimeInfoBox::TimeInfoBox ()
left.attach (*l, 0, 1, 3, 4, FILL);
left.attach (*selection_length, 1, 2, 3, 4);
- punch_title.set_name ("TimeInfoSelectionTitle");
- right.attach (punch_title, 2, 4, 0, 1);
- l = manage (new Label);
- l->set_alignment (1.0, 0.5);
- l->set_text (_("In"));
- l->set_name (X_("TimeInfoPunchLabel"));
- right.attach (*l, 2, 3, 1, 2, FILL);
- right.attach (*punch_start, 3, 4, 1, 2);
-
- l = manage (new Label);
- l->set_alignment (1.0, 0.5);
- l->set_text (_("Out"));
- l->set_name (X_("TimeInfoPunchLabel"));
- right.attach (*l, 2, 3, 2, 3, FILL);
- right.attach (*punch_end, 3, 4, 2, 3);
-
punch_in_button.set_name ("TimeInfoPunchButton");
punch_out_button.set_name ("TimeInfoPunchButton");
- punch_button_box.set_homogeneous (true);
- punch_button_box.set_spacing (6);
- punch_button_box.set_border_width (2);
- punch_button_box.pack_start (punch_in_button, true, true);
- punch_button_box.pack_start (punch_out_button, true, true);
ActionManager::get_action ("Transport", "TogglePunchIn")->connect_proxy (punch_in_button);
ActionManager::get_action ("Transport", "TogglePunchOut")->connect_proxy (punch_out_button);
@@ -146,7 +125,12 @@ TimeInfoBox::TimeInfoBox ()
Gtkmm2ext::UI::instance()->set_tip (punch_in_button, _("Start recording at auto-punch start"));
Gtkmm2ext::UI::instance()->set_tip (punch_out_button, _("Stop recording at auto-punch end"));
- right.attach (punch_button_box, 2, 4, 3, 4, FILL, FILL);
+ punch_title.set_name ("TimeInfoSelectionTitle");
+ right.attach (punch_title, 2, 4, 0, 1);
+ right.attach (punch_in_button, 2, 3, 1, 2, FILL);
+ right.attach (*punch_start, 3, 4, 1, 2);
+ right.attach (punch_out_button, 2, 3, 2, 3, FILL);
+ right.attach (*punch_end, 3, 4, 2, 3);
show_all ();