]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.cpp
Bind the font texture in Text::render
[libs/gltk.git] / source / button.cpp
index 5095379364b5c7a883d1d4fe615ec4d90655444a..fb052629d626c7eae2ae9f22cc93d4cc94f87311 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/gl/immediate.h>
 #include "button.h"
 #include "part.h"
@@ -51,6 +44,7 @@ void Button::autosize()
 void Button::set_text(const std::string &t)
 {
        text = t;
+       signal_autosize_changed.emit();
 }
 
 void Button::set_icon(const GL::Texture2D *i)