summaryrefslogtreecommitdiff
path: root/gtk2_ardour/monitor_section.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-06 02:08:59 +0200
committerRobin Gareus <robin@gareus.org>2014-09-06 02:08:59 +0200
commita07dc44b4df26dfe049d36b1f969765affbc3a42 (patch)
tree0bbddf71b5cde7855e06c3b1fd059eebe69d4c1c /gtk2_ardour/monitor_section.cc
parent6f30c1fddb4f717c5aa9eddfa84cb901778ab76e (diff)
remove pixel based Button LED diameter setting
Diameter is calculated depending on font-scaling. Besides, all explicit calls simply set the default value, anyway. If some API is needed in the future, it should set the diameter in [em].
Diffstat (limited to 'gtk2_ardour/monitor_section.cc')
-rw-r--r--gtk2_ardour/monitor_section.cc25
1 files changed, 10 insertions, 15 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc
index b31eeea295..6d2fdbb677 100644
--- a/gtk2_ardour/monitor_section.cc
+++ b/gtk2_ardour/monitor_section.cc
@@ -497,23 +497,18 @@ MonitorSection::set_session (Session* s)
MonitorSection::ChannelButtonSet::ChannelButtonSet ()
{
- cut.set_diameter (3);
- dim.set_diameter (3);
- solo.set_diameter (3);
- invert.set_diameter (3);
-
- cut.set_name (X_("monitor section cut"));
- dim.set_name (X_("monitor section dim"));
- solo.set_name (X_("monitor section solo"));
- invert.set_name (X_("monitor section invert"));
-
- cut.unset_flags (Gtk::CAN_FOCUS);
- dim.unset_flags (Gtk::CAN_FOCUS);
- solo.unset_flags (Gtk::CAN_FOCUS);
- invert.unset_flags (Gtk::CAN_FOCUS);
+ cut.set_name (X_("monitor section cut"));
+ dim.set_name (X_("monitor section dim"));
+ solo.set_name (X_("monitor section solo"));
+ invert.set_name (X_("monitor section invert"));
+
+ cut.unset_flags (Gtk::CAN_FOCUS);
+ dim.unset_flags (Gtk::CAN_FOCUS);
+ solo.unset_flags (Gtk::CAN_FOCUS);
+ invert.unset_flags (Gtk::CAN_FOCUS);
}
-void
+ void
MonitorSection::populate_buttons ()
{
if (!_monitor) {