'libs/evoral' - cast the returned pointers from malloc() / g_ptr_array_index() etc...
[ardour.git] / libs / gtkmm2ext / gtkutils.cc
index 48d688cd5caa4706d5889dc5d04c25edca48337e..23bf4d6b2fc9a2ac97f4c43f6a0a0ea2c4f66e71 100644 (file)
     $Id$
 */
 
-#include <string>
-
-#include <gtkmm.h>
 #include <gtkmm2ext/gtkutils.h>
 
-void
-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);
-}