From 9f4f9c205d02486578da9e79e3257a8dc9ae02b3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 18 Jun 2014 22:48:24 -0400 Subject: change verbose cursor font selection to use canvas variable mechanism, plus a few developing comment edits --- gtk2_ardour/verbose_cursor.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/verbose_cursor.cc b/gtk2_ardour/verbose_cursor.cc index 7006f6c80a..d6f89bde2b 100644 --- a/gtk2_ardour/verbose_cursor.cc +++ b/gtk2_ardour/verbose_cursor.cc @@ -46,7 +46,7 @@ VerboseCursor::VerboseCursor (Editor* editor) _canvas_item = new ArdourCanvas::Text (_editor->get_hvscroll_group()); CANVAS_DEBUG_NAME (_canvas_item, "verbose canvas cursor"); _canvas_item->set_ignore_events (true); - _canvas_item->set_font_description (get_font_for_style (N_("VerboseCanvasCursor"))); + _canvas_item->set_font_description (Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_LargerBoldFont())); } ArdourCanvas::Item * @@ -55,6 +55,8 @@ VerboseCursor::canvas_item () const return _canvas_item; } +/** Set the contents and position of the cursor. Coordinates are in window space + */ void VerboseCursor::set (string const & text, double x, double y) { @@ -255,6 +257,8 @@ VerboseCursor::set_color (uint32_t color) /** Set the position of the verbose cursor. Any x/y offsets * passed to the last call to show() will be applied to the * coordinates passed in here. + * + * Coordinates are in window space. */ void VerboseCursor::set_position (double x, double y) -- cgit v1.2.3