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/setup_relations.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/setup_relations.cpp') diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index 97d962f2a..2e1ba95bb 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -158,7 +158,7 @@ public: player_names->size()); r < sz; ++r) { std::string name = (*player_names)[r]; - gcn::Widget *const widget = new Label(name); + gcn::Widget *const widget = new Label(this, name); mWidgets.push_back(widget); DropDown *const choicebox = new DropDown(this, mListModel); @@ -262,7 +262,7 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : mIgnoreActionChoicesBox = new DropDown(widget, mIgnoreActionChoicesModel); for (int i = 0; i < COLUMNS_NR; i++) - mPlayerTableTitleModel->set(0, i, new Label(gettext(table_titles[i]))); + mPlayerTableTitleModel->set(0, i, new Label(this, gettext(table_titles[i]))); mPlayerTitleTable->setLinewiseSelection(true); @@ -271,7 +271,7 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : mPlayerTable->setLinewiseSelection(true); mPlayerTable->addActionListener(this); - Label *const ignore_action_label = new Label(_("When ignoring:")); + Label *const ignore_action_label = new Label(this, _("When ignoring:")); mIgnoreActionChoicesBox->setActionEventId(ACTION_STRATEGY); mIgnoreActionChoicesBox->addActionListener(this); -- cgit v1.2.3-70-g09d2