diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-12 18:36:15 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-12 18:36:15 +0000 |
commit | 8c62978f845432f8cac046a0d6fd4587c087f22f (patch) | |
tree | 1f586624c7f3a5ea375777606c035622026d8c5b /src/gui/itemshortcutcontainer.cpp | |
parent | b50649ee5e28511df72cc3a08023747727c5b6f0 (diff) | |
download | mana-client-8c62978f845432f8cac046a0d6fd4587c087f22f.tar.gz mana-client-8c62978f845432f8cac046a0d6fd4587c087f22f.tar.bz2 mana-client-8c62978f845432f8cac046a0d6fd4587c087f22f.tar.xz mana-client-8c62978f845432f8cac046a0d6fd4587c087f22f.zip |
Fixed display of item shortcut container. gcn::Widget::setWidth is no longer
virtual.
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index 0f7d1332..3c03d85a 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -40,6 +40,7 @@ ItemShortcutContainer::ItemShortcutContainer(): mItemMoved(NULL) { addMouseListener(this); + addWidgetListener(this); ResourceManager *resman = ResourceManager::getInstance(); @@ -119,11 +120,8 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics) } } -void -ItemShortcutContainer::setWidth(int width) +void ItemShortcutContainer::widgetResized(const gcn::Event &event) { - gcn::Widget::setWidth(width); - mGridWidth = getWidth() / mBoxWidth; if (mGridWidth < 1) { mGridWidth = 1; |