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/charselectdialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/charselectdialog.cpp') diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 8e0ced99d..d822e005c 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -141,8 +141,8 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): gcn::KeyListener(), mLocked(false), mLoginData(data), - mAccountNameLabel(new Label(mLoginData->username)), - mLastLoginLabel(new Label(mLoginData->lastLogin)), + mAccountNameLabel(new Label(this, mLoginData->username)), + mLastLoginLabel(new Label(this, mLoginData->lastLogin)), mSwitchLoginButton(new Button(this, _("Switch Login"), "switch", this)), mChangePasswordButton(new Button(this, _("Change Password"), "change_password", this)), @@ -561,9 +561,9 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget, Container(widget), mCharacter(nullptr), mPlayerBox(new PlayerBox(nullptr)), - mName(new Label("wwwwwwwwwwwwwwwwwwwwwwww")), - mLevel(new Label("(888)")), - mMoney(new Label("wwwwwwwww")), + mName(new Label(this, "wwwwwwwwwwwwwwwwwwwwwwww")), + mLevel(new Label(this, "(888)")), + mMoney(new Label(this, "wwwwwwwww")), mButton(new Button(this, "wwwwwwwww", "go", charSelectDialog)), mDelete(new Button(this, _("Delete"), "delete", charSelectDialog)) { -- cgit v1.2.3-60-g2f50