]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.h
Improve widget part caching
[libs/gltk.git] / source / label.h
index a61776ed6e1c9b6dd4cd32c138fb7466783b6fe4..3e753dd0d92f97a64c69f1c6f46ea1a29421261d 100644 (file)
@@ -13,7 +13,7 @@ Labels display static text.  There is one special part: "text".
 class Label: public Widget
 {
 public:
-       class Loader: public Widget::Loader
+       class Loader: public DataFile::DerivedObjectLoader<Label, Widget::Loader>
        {
        public:
                Loader(Label &);
@@ -33,7 +33,7 @@ public:
        void set_text(const std::string &);
 
 private:
-       virtual void render_special(const Part &) const;
+       virtual void rebuild_special(const Part &);
 
        virtual void on_style_change();
 };