X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_clock.cc;h=d7fb3766888751236ba6b3727f318ee4f4dc891e;hb=fc5c247aa152235a749180bd0e86efe0ce32a20a;hp=54f17725eb0a46be46f4c46fdeefadc688d4e54d;hpb=3e0d801509290ff438b19773ac144f91ea51706e;p=ardour.git diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 54f17725eb..d7fb376688 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -151,7 +151,7 @@ AudioClock::on_realize () Gtk::Requisition req; CairoWidget::on_realize (); - + set_clock_dimensions (req); first_width = req.width; @@ -318,7 +318,7 @@ AudioClock::render (cairo_t* cr, cairo_rectangle_t*) cairo_save (cr); cairo_scale (cr, xscale, yscale); } - + pango_cairo_show_layout (cr, _layout->gobj()); if (xscale != 1.0 || yscale != 1.0) { @@ -507,15 +507,15 @@ AudioClock::on_size_request (Gtk::Requisition* req) Glib::RefPtr style = get_style (); Pango::FontDescription font; int w; - + tmp = Pango::Layout::create (get_pango_context()); - + if (!is_realized()) { font = get_font_for_style (get_name()); } else { font = style->get_font(); } - + tmp->set_font_description (font); font.set_size (INFO_FONT_SIZE); @@ -561,17 +561,17 @@ AudioClock::start_edit (Field f) edit_string.clear (); _layout->set_text (""); } - + input_string.clear (); editing = true; edit_is_negative = false; - + if (f) { input_string = get_field (f); show_edit_status (merge_input_and_edit_string ()); _layout->set_text (edit_string); } - + queue_draw (); Keyboard::magic_widget_grab_focus (); @@ -2121,7 +2121,7 @@ AudioClock::build_ops_menu () if (editable && !_off && !is_duration && !_follows_playhead) { ops_items.push_back (SeparatorElem()); - ops_items.push_back (MenuElem (_("Set From Playhead"), sigc::mem_fun(*this, &AudioClock::set_from_playhead))); + ops_items.push_back (MenuElem (_("Set from Playhead"), sigc::mem_fun(*this, &AudioClock::set_from_playhead))); ops_items.push_back (MenuElem (_("Locate to This Time"), sigc::mem_fun(*this, &AudioClock::locate))); } ops_items.push_back (SeparatorElem());