diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-03 02:11:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-04 23:57:02 +0300 |
commit | 0647852f65598ef9cb9ebff6dfb508e8b1a98c1c (patch) | |
tree | 4cc9395e820e60f3d511351b78fe187e897a8c7e /src/gui/widgets/dropdown.cpp | |
parent | c52472123eb7847b5cee6b1898c42ef25a5466dd (diff) | |
download | plus-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.gz plus-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.bz2 plus-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.tar.xz plus-0647852f65598ef9cb9ebff6dfb508e8b1a98c1c.zip |
Add support for default theme file names.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 8 |
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++; |