A possible method for correctly sizing the editor controls, and a couple buttons fixed

git-svn-id: svn://localhost/trunk/ardour2@195 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain
2005-12-17 13:39:27 +00:00
parent 170d6b24ce
commit d2b8a7f6bd
6 changed files with 21 additions and 11 deletions

View File

@@ -35,10 +35,10 @@ Gtkmm2ext::set_size_request_to_display_given_text (Gtk::Widget &w, const gchar *
{
int height = 0;
int width = 0;
int width = 0;
w.ensure_style ();
w.create_pango_layout(text)->get_pixel_size (width, height);
w.create_pango_layout(text)->get_pixel_size (width, height);
height += vpadding;
width += hpadding;