OSC: plugin feedback mathfix - 0 param (meter) checked for.
[ardour.git] / libs / gtkmm2ext / gtkutils.cc
index 48d688cd5caa4706d5889dc5d04c25edca48337e..2e057d75c10ea16f8c3e0d6d56ddecded8ff2459 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 1998-99 Paul Barton-Davis
+
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     $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);
-}