diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2009-05-05 18:41:21 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2009-05-05 18:41:21 +0000 |
commit | cd053f804298a4e359c1b594d2497227090aed61 (patch) | |
tree | 54d14fd486eaf4e7f65f87a95e05543598666342 /gtk2_ardour/region_view.cc | |
parent | 3a8294a2317c5ee988492f23ba7fb8bdccdedcc8 (diff) |
Speed up regionview creation by using pixbufs for name labels instead of Gnome::Canvas::Text.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5053 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index 49b7894d11..2bbfa4b5f5 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -148,8 +148,8 @@ RegionView::init (Gdk::Color& basic_color, bool wfd) name_highlight->signal_event().connect (bind (mem_fun (PublicEditor::instance(), &PublicEditor::canvas_region_view_name_highlight_event), name_highlight, this)); } - if (name_text) { - name_text->set_data ("regionview", this); + if (name_pixbuf) { + name_pixbuf->set_data ("regionview", this); } reset_width_dependent_items ((double) _region->length() / samples_per_unit); |