summaryrefslogtreecommitdiff
path: root/gtk2_ardour/panner_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-05-20 13:28:30 +0000
committerCarl Hetherington <carl@carlh.net>2009-05-20 13:28:30 +0000
commit64524c0ba40b9f69f06a395f8763615700244fda (patch)
tree35178c663851a00069c6f3c3a7fbe4ee99f17d5d /gtk2_ardour/panner_ui.cc
parentdbe20bd3a9d23e1e49556a1f47a31c5b8144dfda (diff)
Make pan double-click entry work in percentage left or right. Write pan position to the panner as text (except when centered). Use a virtual function rather than a signal for BarController labels.
git-svn-id: svn://localhost/ardour2/branches/3.0@5104 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r--gtk2_ardour/panner_ui.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc
index 3ffec0ab05..b35ebe5f22 100644
--- a/gtk2_ardour/panner_ui.cc
+++ b/gtk2_ardour/panner_ui.cc
@@ -393,7 +393,7 @@ PannerUI::setup_pan ()
x = rx;
}
- pan_adjustments.push_back (new Adjustment (x, 0, 1.0, 0.05, 0.1));
+ pan_adjustments.push_back (new Adjustment (x, 0, 1.0, 0.005, 0.05));
bc = new PannerBar (*pan_adjustments[asz],
boost::static_pointer_cast<PBD::Controllable>( _io->panner()->pan_control( asz )) );
@@ -697,23 +697,6 @@ PannerUI::update_pan_bars (bool only_if_aplay)
}
void
-PannerUI::pan_printer (char *buf, uint32_t len, Adjustment* adj)
-{
- float val = adj->get_value();
-
- if (val == 0.0f) {
- snprintf (buf, len, X_("L"));
- } else if (val == 1.0f) {
- snprintf (buf, len, X_("R"));
- } else if (Panner::equivalent (val, 0.5f)) {
- snprintf (buf, len, X_("C"));
- } else {
- /* don't print anything */
- buf[0] = '\0';
- }
-}
-
-void
PannerUI::update_pan_sensitive ()
{
bool sensitive = !(_io->panner()->automation_state() & Play);