From d59cd9111c1e86b224ea62cc975c49b157e2b3cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Oct 2012 23:56:04 +0300 Subject: Add to some controls palette inheritance from other controls. --- src/gui/setup_colors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/setup_colors.cpp') diff --git a/src/gui/setup_colors.cpp b/src/gui/setup_colors.cpp index 3332c1d73..0e916b691 100644 --- a/src/gui/setup_colors.cpp +++ b/src/gui/setup_colors.cpp @@ -48,10 +48,10 @@ const std::string Setup_Colors::rawmsg = _("This is what the color looks like"); -Setup_Colors::Setup_Colors() : - SetupTab(), +Setup_Colors::Setup_Colors(const Widget2 *const widget) : + SetupTab(widget), gcn::SelectionListener(), - mColorBox(new ListBox(userPalette)), + mColorBox(new ListBox(this, userPalette)), mScroll(new ScrollArea(mColorBox, true, "setup_colors_background.xml")), mPreview(new BrowserBox(BrowserBox::AUTO_WRAP)), mTextPreview(new TextPreview(rawmsg)), -- cgit v1.2.3-60-g2f50