]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.cpp
Remove dead code from Panel::Child
[libs/gltk.git] / source / panel.cpp
index 91e30cdcbafadd63b98714c6cd1a8f3969fb1f07..11d90e40349b04d1c49534119be5f36f100998b4 100644 (file)
@@ -73,13 +73,13 @@ Widget *Panel::get_final_input_focus() const
        return input_focus;
 }
 
-void Panel::render_special(const Part &part) const
+void Panel::render_special(const Part &part, GL::Renderer &renderer) const
 {
        if(part.get_name()=="children")
        {
                for(list<Container::Child *>::const_iterator i=children.begin(); i!=children.end(); ++i)
                        if((*i)->widget->is_visible())
-                               (*i)->widget->render();
+                               (*i)->widget->render(renderer);
        }
 }
 
@@ -275,13 +275,6 @@ void Panel::Child::visibility_changed(bool v)
        }
 }
 
-void Panel::Child::autosize_changed()
-{
-       Panel &panel = static_cast<Panel &>(container);
-       if(panel.layout)
-               panel.layout->update();
-}
-
 void Panel::Child::request_focus()
 {
        Panel &panel = static_cast<Panel &>(container);