From 17b18acda3447214bd739107d9a46eecfaa6ef70 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 20 Apr 2006 18:14:00 +0000 Subject: a) use ink extents in most places where we used to use logical extents for text sizing b) add back scroll-wheel functionality to plugin parameter controls git-svn-id: svn://localhost/trunk/ardour2@460 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/utils.h') diff --git a/gtk2_ardour/utils.h b/gtk2_ardour/utils.h index 608ba10529..1f1d702261 100644 --- a/gtk2_ardour/utils.h +++ b/gtk2_ardour/utils.h @@ -26,6 +26,8 @@ #include #include #include +#include + #include "canvas.h" namespace Gtk { @@ -51,7 +53,7 @@ slider_position_to_gain (double pos) } std::string short_version (std::string, std::string::size_type target_length); -std::string fit_to_pixels (const std::string &, int pixel_width, const std::string & font); +Glib::ustring fit_to_pixels (const Glib::ustring&, int pixel_width, Pango::FontDescription& font, int& actual_width); int atoi (const std::string&); double atof (const std::string&); -- cgit v1.2.3