compiles and runs, but crashes ... duh

git-svn-id: svn://localhost/trunk/ardour2@113 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2005-11-26 00:06:46 +00:00
parent 026f506bc6
commit f69abbff90
44 changed files with 583 additions and 519 deletions

View file

@ -24,18 +24,10 @@
#include <gtkmm2ext/gtkutils.h>
void
set_size_request_to_display_given_text (Gtk::Widget &w,
const std::string& text,
gint hpadding,
gint vpadding)
gtk_set_size_request_to_display_given_text (Gtk::Widget &w,
const std::string& text,
gint hpadding,
gint vpadding)
{
int height = 0;
int width = 0;
w.create_pango_layout(text)->get_pixel_size(width, height);
height += vpadding;
width += hpadding;
w.set_size_request(width, height);
}