]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.cpp
Rework how widget ownership works in Container
[libs/gltk.git] / source / label.cpp
index 2de02f638249de9f7c544cc257c79b11f05300be..033bfd9296b07051bdd04691d0ba6d2d65985fff 100644 (file)
@@ -9,7 +9,6 @@ namespace GLtk {
 
 Label::Label(const string &t)
 {
-       focusable = false;
        set_text(t);
 }
 
@@ -17,10 +16,10 @@ void Label::set_text(const string &t)
 {
        text = t;
        signal_autosize_changed.emit();
-       rebuild();
+       mark_rebuild();
 }
 
-void Label::autosize_special(const Part &part, Geometry &ageom)
+void Label::autosize_special(const Part &part, Geometry &ageom) const
 {
        if(part.get_name()=="text")
                text.autosize(part, ageom);