summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-03 02:11:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-04 23:57:02 +0300
commit0647852f65598ef9cb9ebff6dfb508e8b1a98c1c (patch)
tree4cc9395e820e60f3d511351b78fe187e897a8c7e /src/gui/widgets/dropdown.cpp
parentc52472123eb7847b5cee6b1898c42ef25a5466dd (diff)
downloadmanaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.gz
manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.bz2
manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.xz
manaverse-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.zip
Add support for default theme file names.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index dd9bbb4e5..7e810390a 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -70,7 +70,8 @@ DropDown::DropDown(gcn::ListModel *listModel, gcn::ActionListener* listener,
// Load the background skin
for (int i = 0; i < 2; i ++)
{
- Skin *skin = Theme::instance()->load(dropdownFiles[i]);
+ Skin *skin = Theme::instance()->load(
+ dropdownFiles[i], "dropdown.xml");
if (skin)
{
const ImageRect &rect = skin->getBorder();
@@ -98,7 +99,10 @@ DropDown::DropDown(gcn::ListModel *listModel, gcn::ActionListener* listener,
// get the border skin
if (Theme::instance())
- Theme::instance()->loadRect(skinRect, "dropdown_background.xml");
+ {
+ Theme::instance()->loadRect(skinRect,
+ "dropdown_background.xml", "");
+ }
}
instances++;