summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_info_box.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-10 15:25:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-10 15:25:01 +0000
commit6449c2e5c8b027245fe5fb9942984243e4a653d7 (patch)
tree0441b7521bc04dec2f858c3ca836d1ce43b1dcb9 /gtk2_ardour/time_info_box.cc
parentdbafe45a280cc6c33bb7dca72202c109012cd8eb (diff)
more ardour-button-ization; fix transparency of selection rects; use "correct" cursors when entering and leaving selection rect handles; color tweaks for a few buttons
git-svn-id: svn://localhost/ardour2/branches/3.0@10527 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_info_box.cc')
-rw-r--r--gtk2_ardour/time_info_box.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc
index fa092ea913..a34314c3cd 100644
--- a/gtk2_ardour/time_info_box.cc
+++ b/gtk2_ardour/time_info_box.cc
@@ -45,8 +45,6 @@ TimeInfoBox::TimeInfoBox ()
, right (2, 4)
, syncing_selection (false)
, syncing_punch (false)
- , punch_in_button (_("In"))
- , punch_out_button (_("Out"))
{
selection_start = new AudioClock ("selection-start", false, "SelectionClockDisplay", false, false, false, false);
selection_end = new AudioClock ("selection-end", false, "SelectionClockDisplay", false, false, false, false);
@@ -116,20 +114,24 @@ TimeInfoBox::TimeInfoBox ()
left.attach (*l, 0, 1, 3, 4, FILL);
left.attach (*selection_length, 1, 2, 3, 4);
- punch_in_button.set_name ("TimeInfoPunchButton");
- punch_out_button.set_name ("TimeInfoPunchButton");
+ punch_in_button.set_name ("punch button");
+ punch_out_button.set_name ("punch button");
+ punch_in_button.set_text (_("In"));
+ punch_out_button.set_text (_("Out"));
- ActionManager::get_action ("Transport", "TogglePunchIn")->connect_proxy (punch_in_button);
- ActionManager::get_action ("Transport", "TogglePunchOut")->connect_proxy (punch_out_button);
+ Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "TogglePunchIn");
+ punch_in_button.set_related_action (act);
+ act = ActionManager::get_action ("Transport", "TogglePunchOut");
+ punch_out_button.set_related_action (act);
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"));
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_in_button, 2, 3, 1, 2, FILL, SHRINK);
right.attach (*punch_start, 3, 4, 1, 2);
- right.attach (punch_out_button, 2, 3, 2, 3, FILL);
+ right.attach (punch_out_button, 2, 3, 2, 3, FILL, SHRINK);
right.attach (*punch_end, 3, 4, 2, 3);
show_all ();
@@ -360,7 +362,7 @@ TimeInfoBox::on_expose_event (GdkEventExpose* ev)
#endif
translate_coordinates (*window_parent, 0, 0, x, y);
context->set_source_rgba (0.149, 0.149, 0.149, 1.0);
- Gtkmm2ext::rounded_rectangle (context, x, y, get_allocation().get_width(), get_allocation().get_height(), 5);
+ Gtkmm2ext::rounded_rectangle (context, x, y, get_allocation().get_width(), get_allocation().get_height(), 9);
context->fill ();
}
}