mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
compiles and runs, but crashes ... duh
git-svn-id: svn://localhost/trunk/ardour2@113 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
026f506bc6
commit
f69abbff90
44 changed files with 583 additions and 519 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue