Committed underlay support (from Audun).
[ardour.git] / libs / gtkmm2ext / gtkutils.cc
index a4e86b0a224f72f4f66e557e47cc5e101e2a7aee..23bf4d6b2fc9a2ac97f4c43f6a0a0ea2c4f66e71 100644 (file)
     $Id$
 */
 
-#include <string>
-
-#include <gtkmm.h>
 #include <gtkmm2ext/gtkutils.h>
 
-void
-set_usize_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);
-}