X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fstereo_panner.cc;h=721567bf10de0a8c4c074d7d5ce530a4d533fd74;hb=cd0d68a591ee64bb0e85d9a364af9fe6abdeecbe;hp=ebb55e7c867d0515108be46ba4b56f9d164b4d25;hpb=f4ed14a83b3dfc0af9b92db5f73f3389c7773a04;p=ardour.git diff --git a/gtk2_ardour/stereo_panner.cc b/gtk2_ardour/stereo_panner.cc index ebb55e7c86..721567bf10 100644 --- a/gtk2_ardour/stereo_panner.cc +++ b/gtk2_ardour/stereo_panner.cc @@ -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) {