summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-02 14:01:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-02 14:01:28 +0300
commit0101f3715378644307115e136570959d3d4be3c9 (patch)
tree254ed566786db5ca701c0e76d05741f9657af480
parent6c9fc2ac3805c3f5dc71f454cec72e434bec1763 (diff)
downloadmv-0101f3715378644307115e136570959d3d4be3c9.tar.gz
mv-0101f3715378644307115e136570959d3d4be3c9.tar.bz2
mv-0101f3715378644307115e136570959d3d4be3c9.tar.xz
mv-0101f3715378644307115e136570959d3d4be3c9.zip
Fix resize issue in shortcuts windows in software drawing mode.
-rw-r--r--src/gui/shortcutwindow.cpp6
-rw-r--r--src/gui/shortcutwindow.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 28dcdd07e..762a00c8f 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -158,6 +158,7 @@ void ShortcutWindow::addTab(std::string name, ShortcutContainer *const content)
content->setWidget2(this);
Tab *const tab = new ShortcutTab(this, name, content);
mTabs->addTab(tab, scroll);
+ mPages.push_back(content);
}
int ShortcutWindow::getTabIndex() const
@@ -222,4 +223,9 @@ void ShortcutWindow::widgetMoved(const gcn::Event& event)
Window::widgetMoved(event);
if (mItems)
mItems->setRedraw(true);
+ for (std::vector<ShortcutContainer*>::iterator it = mPages.begin(),
+ it_end = mPages.end(); it != it_end; ++ it)
+ {
+ (*it)->setRedraw(true);
+ }
}
diff --git a/src/gui/shortcutwindow.h b/src/gui/shortcutwindow.h
index c1bf26a38..428a71507 100644
--- a/src/gui/shortcutwindow.h
+++ b/src/gui/shortcutwindow.h
@@ -73,6 +73,7 @@ class ShortcutWindow final : public Window
ScrollArea *mScrollArea;
TabbedArea *mTabs;
+ std::vector<ShortcutContainer*> mPages;
static int mBoxesWidth;
};