From 0153e8fa499b7bbdd712339bfb3921ead15a37a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:23:16 +0300 Subject: Add palette inheritance to label class. --- src/gui/widgets/label.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/label.cpp') diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 63a3f6b76..e7481e992 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -30,15 +30,17 @@ Skin *Label::mSkin = nullptr; int Label::mInstances = 0; -Label::Label() : +Label::Label(const Widget2 *const widget) : gcn::Label(), + Widget2(widget), mPadding(0) { init(); } -Label::Label(const std::string &caption) : +Label::Label(const Widget2 *const widget, const std::string &caption) : gcn::Label(caption), + Widget2(widget), mPadding(0) { init(); -- cgit v1.2.3-60-g2f50