LV2 - use scratch buffers to scratch :)
[ardour.git] / gtk2_ardour / stereo_panner.cc
index ebb55e7c867d0515108be46ba4b56f9d164b4d25..721567bf10de0a8c4c074d7d5ce530a4d533fd74 100644 (file)
@@ -105,7 +105,7 @@ StereoPanner::set_tooltip ()
        */
 
        char buf[64];
-       snprintf (buf, sizeof (buf), "L:%3d R:%3d Width:%d%%", (int) rint (100.0 * (1.0 - pos)),
+       snprintf (buf, sizeof (buf), _("L:%3d R:%3d Width:%d%%"), (int) rint (100.0 * (1.0 - pos)),
                  (int) rint (100.0 * pos),
                  (int) floor (100.0 * width_control->get_value()));
        _tooltip.set_tip (buf);
@@ -146,7 +146,7 @@ StereoPanner::on_expose_event (GdkEventExpose*)
        /* background */
 
        context->set_source_rgba (UINT_RGBA_R_FLT(b), UINT_RGBA_G_FLT(b), UINT_RGBA_B_FLT(b), UINT_RGBA_A_FLT(b));
-       rounded_rectangle (context, 0, 0, width, height, corner_radius);
+       cairo_rectangle (context->cobj(), 0, 0, width, height);
        context->fill ();
 
        /* the usable width is reduced from the real width, because we need space for
@@ -275,6 +275,7 @@ StereoPanner::on_button_press_event (GdkEventButton* ev)
        dragging_left = false;
        dragging_right = false;
        _dragging = false;
+       _tooltip.target_stop_drag ();
        accumulated_delta = 0;
        detented = false;
 
@@ -352,6 +353,7 @@ StereoPanner::on_button_press_event (GdkEventButton* ev)
                }
 
                _dragging = false;
+               _tooltip.target_stop_drag ();
 
        } else if (ev->type == GDK_BUTTON_PRESS) {