summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-09 12:43:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-09 12:43:50 +0300
commitd189d362ba4b1b7c7963e925638eb5f12baba882 (patch)
tree140f7e1092a532bc89abace4d7fb659510055b29 /src/gui/widgets/browserbox.cpp
parente153ea49f7442a82651e4e35f2be59c459ad32cb (diff)
downloadmanaplus-d189d362ba4b1b7c7963e925638eb5f12baba882.tar.gz
manaplus-d189d362ba4b1b7c7963e925638eb5f12baba882.tar.bz2
manaplus-d189d362ba4b1b7c7963e925638eb5f12baba882.tar.xz
manaplus-d189d362ba4b1b7c7963e925638eb5f12baba882.zip
allow set different skin for browserboxes.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index c8edf757b..df0fd5705 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -47,8 +47,10 @@
ImageSet *BrowserBox::mEmotes = nullptr;
int BrowserBox::mInstances = 0;
-BrowserBox::BrowserBox(const Widget2 *const widget, const unsigned int mode,
- const bool opaque) :
+BrowserBox::BrowserBox(const Widget2 *const widget,
+ const unsigned int mode,
+ const bool opaque,
+ const std::string &skin) :
gcn::Widget(),
Widget2(widget),
gcn::MouseListener(),
@@ -86,7 +88,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget, const unsigned int mode,
Theme *const theme = Theme::instance();
if (theme)
- mSkin = theme->load("browserbox.xml", "");
+ mSkin = theme->load(skin, "browserbox.xml");
if (mInstances == 0)
{
mEmotes = ResourceManager::getInstance()->getImageSet(