summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mono_panner.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-07 17:28:37 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-07 17:28:37 +0000
commit9b17f35576a74d971b2c86558cf1cf1dec2750e0 (patch)
treefc21685ad2ecfbe665fc975038c76887b7c54c2d /gtk2_ardour/mono_panner.cc
parentbf476d4a588fdceb24caffb8677ceb956592edbc (diff)
change appearance of panner data popup slightly (fixed width font so it doesn't bounce around during edits), and make dbl-clicks to set pos to max-L or max-R work even if width is reversed
git-svn-id: svn://localhost/ardour2/branches/3.0@8746 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r--gtk2_ardour/mono_panner.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 9627f87106..5500d6f555 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -105,9 +105,11 @@ MonoPanner::set_drag_data ()
the center of the USA isn't Kansas, its (50LA, 50NY) and it will all make sense.
*/
- drag_data_label->set_markup (string_compose (_("L:%1 R:%2"),
- (int) rint (100.0 * (1.0 - pos)),
- (int) rint (100.0 * pos)));
+ char buf[64];
+ snprintf (buf, sizeof (buf), "L:%3d R:%3d",
+ (int) rint (100.0 * (1.0 - pos)),
+ (int) rint (100.0 * pos));
+ drag_data_label->set_markup (buf);
}
void