]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.cpp
Add a signal to notify when the automatic size of a widget changes
[libs/gltk.git] / source / toggle.cpp
index 753257c775ce86fc81bd973898672e4783f86196..41e38cba93d393b8af4d650997ae9c8987b2b483 100644 (file)
@@ -42,6 +42,7 @@ void Toggle::autosize()
 void Toggle::set_text(const string &t)
 {
        text = t;
+       signal_autosize_changed.emit();
 }
 
 void Toggle::set_exclusive(bool e)