]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.cpp
Add a signal to notify when the automatic size of a widget changes
[libs/gltk.git] / source / button.cpp
index 5095379364b5c7a883d1d4fe615ec4d90655444a..da2c433b9d24cfc2fb3110c2e567ec6950262470 100644 (file)
@@ -51,6 +51,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)