]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.cpp
Add an input method subsystem
[libs/gltk.git] / source / panel.cpp
index 23657de506c6fc42f7bd8c02d8cadf07f28b201a..44c41eac98fd6e62d0d69e2ace47c5a52e6910af 100644 (file)
@@ -26,7 +26,9 @@ namespace GLtk {
 
 Panel::Panel():
        layout(0)
-{ }
+{
+       input_type = INPUT_TEXT;
+}
 
 Panel::~Panel()
 {
@@ -41,7 +43,7 @@ void Panel::set_layout(Layout *l)
        layout = l;
 }
 
-void Panel::autosize_special(const Part &part, Geometry &ageom)
+void Panel::autosize_special(const Part &part, Geometry &ageom) const
 {
        if(part.get_name()=="children" && layout)
                layout->autosize(ageom);