diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-01-08 00:25:28 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-01-08 00:25:28 +0000 |
commit | 3b6ad33d11642f7af2136bcc7e96c9c7e499db15 (patch) | |
tree | 9f31e72370eafd24197ea9483b7fc3a5b2fa57e9 /guilib/GUIPanelContainer.cpp | |
parent | 739199c6b306a77299e0f773d021cca9bdfe2229 (diff) |
added: Container.OnScrollNext/OnScrollPrev conditions. Same as OnNext/OnPrev except they only trigger when a scroll is taking place.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26519 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIPanelContainer.cpp')
-rw-r--r-- | guilib/GUIPanelContainer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GUIPanelContainer.cpp b/guilib/GUIPanelContainer.cpp index fef473eac2..3a2ce4b452 100644 --- a/guilib/GUIPanelContainer.cpp +++ b/guilib/GUIPanelContainer.cpp @@ -269,7 +269,7 @@ bool CGUIPanelContainer::MoveDown(bool wrapAround) { // move first item in list SetCursor(m_cursor % m_itemsPerRow); ScrollToOffset(0); - g_infoManager.SetContainerMoving(GetID(), 1); + SetContainerMoving(1); } else return false; @@ -290,7 +290,7 @@ bool CGUIPanelContainer::MoveUp(bool wrapAround) if (offset * m_itemsPerRow + m_cursor >= (int)m_items.size()) SetCursor((int)m_items.size() - offset * m_itemsPerRow - 1); ScrollToOffset(offset); - g_infoManager.SetContainerMoving(GetID(), -1); + SetContainerMoving(-1); } else return false; @@ -359,7 +359,7 @@ void CGUIPanelContainer::SetCursor(int cursor) if (cursor > (m_itemsPerPage + 1)*m_itemsPerRow - 1) cursor = (m_itemsPerPage + 1)*m_itemsPerRow - 1; if (cursor < 0) cursor = 0; if (!m_wasReset) - g_infoManager.SetContainerMoving(GetID(), cursor - m_cursor); + SetContainerMoving(cursor - m_cursor); m_cursor = cursor; } |