resize all editor comboboxes when DPI is reset. involved a minor refactoring of some code and the spreading of the awful COMBO_FUDGE+10 hack

git-svn-id: svn://localhost/ardour2/branches/3.0@8398 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-12-30 21:15:51 +00:00
parent 2cf464cf1d
commit 5e7b4559fe
4 changed files with 44 additions and 23 deletions

View file

@ -42,6 +42,8 @@ namespace Gtk {
class Adjustment;
}
extern sigc::signal<void> DPIReset;
std::string fit_to_pixels (const std::string&, int pixel_width, Pango::FontDescription& font, int& actual_width, bool with_ellipses = false);
std::pair<std::string, double> fit_to_pixels (cairo_t *, std::string, double);