diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-07 13:08:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-07 13:08:00 +0000 |
commit | bb737997aea86f08ec16e6444f3666ff6a524be2 (patch) | |
tree | 6264b4a2b3357707f447878ef84c7911b8f107fa /gtk2_ardour/mixer_group_tabs.cc | |
parent | 2f837b66f75ad95ff5b6032ca8600bed6ba79fe5 (diff) |
move 2 other non-ardour-specific utility functions into gtkmm2ext
git-svn-id: svn://localhost/ardour2/branches/3.0@10932 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_group_tabs.cc')
-rw-r--r-- | gtk2_ardour/mixer_group_tabs.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_group_tabs.cc b/gtk2_ardour/mixer_group_tabs.cc index 2d33b54af3..6482abebc2 100644 --- a/gtk2_ardour/mixer_group_tabs.cc +++ b/gtk2_ardour/mixer_group_tabs.cc @@ -19,6 +19,8 @@ #include <boost/foreach.hpp> +#include "gtkmm2ext/utils.h" + #include "ardour/route_group.h" #include "ardour/session.h" #include "mixer_group_tabs.h" @@ -104,7 +106,7 @@ MixerGroupTabs::draw_tab (cairo_t* cr, Tab const & tab) const cairo_fill (cr); if (tab.group) { - pair<string, double> const f = fit_to_pixels (cr, tab.group->name(), tab.to - tab.from - arc_radius * 2); + pair<string, double> const f = Gtkmm2ext::fit_to_pixels (cr, tab.group->name(), tab.to - tab.from - arc_radius * 2); cairo_text_extents_t ext; cairo_text_extents (cr, tab.group->name().c_str(), &ext); |