]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.cpp
Add an input method subsystem
[libs/gltk.git] / source / label.cpp
index 2de02f638249de9f7c544cc257c79b11f05300be..263b2a4229d23c7c80747e37f3a66f880f2f5140 100644 (file)
@@ -9,7 +9,6 @@ namespace GLtk {
 
 Label::Label(const string &t)
 {
-       focusable = false;
        set_text(t);
 }
 
@@ -20,7 +19,7 @@ void Label::set_text(const string &t)
        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);