From: Mikko Rasa Date: Wed, 17 Oct 2007 06:57:31 +0000 (+0000) Subject: Enable loading of widgets from datafiles (not implemented for all widgets yet) X-Git-Tag: 0.9~29 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e7bc29984e91ee36555d6a4e4eece22170d10ba4;p=libs%2Fgltk.git Enable loading of widgets from datafiles (not implemented for all widgets yet) --- diff --git a/source/label.cpp b/source/label.cpp index d0aba35..9676fa3 100644 --- a/source/label.cpp +++ b/source/label.cpp @@ -24,5 +24,17 @@ void Label::render_part(const Part &part) const Widget::render_part(part); } + +Label::Loader::Loader(Label &l): + Widget::Loader(l) +{ + add("text", &Label::text); +} + +Label &Label::Loader::get_object() +{ + return static_cast