X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmono_panner.cc;h=daec1eede1c8f8bcc5c04681885637dabd03b414;hb=fdbb9d240d870dd7ddf9c04dcfe5b1d5c7211639;hp=7dd16d4853db726c4c325471fc874275c75b126c;hpb=f4ed14a83b3dfc0af9b92db5f73f3389c7773a04;p=ardour.git diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc index 7dd16d4853..daec1eede1 100644 --- a/gtk2_ardour/mono_panner.cc +++ b/gtk2_ardour/mono_panner.cc @@ -98,7 +98,7 @@ MonoPanner::set_tooltip () */ char buf[64]; - snprintf (buf, sizeof (buf), "L:%3d R:%3d", + snprintf (buf, sizeof (buf), _("L:%3d R:%3d"), (int) rint (100.0 * (1.0 - pos)), (int) rint (100.0 * pos)); _tooltip.set_tip (buf); @@ -412,10 +412,6 @@ MonoPanner::on_key_press_event (GdkEventKey* ev) step = one_degree * 5.0; } - /* up/down control width because we consider pan position more "important" - (and thus having higher "sense" priority) than width. - */ - switch (ev->keyval) { case GDK_Left: pv -= step; @@ -425,6 +421,10 @@ MonoPanner::on_key_press_event (GdkEventKey* ev) pv += step; position_control->set_value (pv); break; + case GDK_0: + case GDK_KP_0: + position_control->set_value (0.0); + break; default: return false; }