diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-03 02:05:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-03 02:05:34 +0000 |
commit | 4b35fc4c68fbd4845f7f8f3d2307e97412d7a4d8 (patch) | |
tree | 04aab666f44cb9787220fa76d79a3fba379655fd /gtk2_ardour/time_axis_view_item.h | |
parent | edfc81352e66a412c6bc180c15f788512eccbe42 (diff) |
audun's tempo redraw fix; sort-of cache time axis view item name widths and avoid pango-width-computation when unnecessary
git-svn-id: svn://localhost/ardour2/trunk@1657 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.h')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h index e0331a2de2..960d940268 100644 --- a/gtk2_ardour/time_axis_view_item.h +++ b/gtk2_ardour/time_axis_view_item.h @@ -199,7 +199,7 @@ class TimeAxisViewItem : public Selectable * * @param new_name the new name text to display */ - void set_name_text(std::string new_name) ; + void set_name_text(const Glib::ustring& new_name) ; /** * Set the height of this item @@ -461,6 +461,9 @@ class TimeAxisViewItem : public Selectable ArdourCanvas::SimpleRect* frame_handle_start; ArdourCanvas::SimpleRect* frame_handle_end; + int name_text_width; + double last_name_text_width; + Visibility visibility; }; /* class TimeAxisViewItem */ |