summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
authorBjørn <bjorn@horst-dieter.(none)>2009-04-12 18:04:33 +0200
committerBjørn <bjorn@horst-dieter.(none)>2009-04-12 19:06:37 +0200
commita6998fbdfaf84aa1920564d97e3421ed28c9a893 (patch)
tree592fb9e78946a4f539e7c1dd3210b50f68e4f961 /src/gui/itemshortcutcontainer.cpp
parentacbafa84774d4addeb4da0206762d64febf26d3e (diff)
downloadmana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.gz
mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.bz2
mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.tar.xz
mana-a6998fbdfaf84aa1920564d97e3421ed28c9a893.zip
Cleaned up the ItemPopup class a bit
Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes.
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/itemshortcutcontainer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp
index ce9013aa..e5d0d1b9 100644
--- a/src/gui/itemshortcutcontainer.cpp
+++ b/src/gui/itemshortcutcontainer.cpp
@@ -49,7 +49,6 @@ ItemShortcutContainer::ItemShortcutContainer():
addWidgetListener(this);
mItemPopup = new ItemPopup;
- mItemPopup->setOpaque(false);
ResourceManager *resman = ResourceManager::getInstance();
@@ -239,9 +238,7 @@ void ItemShortcutContainer::mouseMoved(gcn::MouseEvent &event)
if (item && inventoryWindow->isVisible())
{
- if (item->getInfo().getName() != mItemPopup->getItemName())
- mItemPopup->setItem(item->getInfo());
- mItemPopup->updateColors();
+ mItemPopup->setItem(item->getInfo());
mItemPopup->view(viewport->getMouseX(), viewport->getMouseY());
}
else