aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIButtonScroller.cpp
diff options
context:
space:
mode:
authorMaestroDD <MaestroDD@svn>2010-01-20 15:02:51 +0000
committerMaestroDD <MaestroDD@svn>2010-01-20 15:02:51 +0000
commit01c4d6b96d62d34a7cddc99ad1c5db9af97604a6 (patch)
tree929a8d7a873fc7fceeaa8d5890b2bf7270b3877e /guilib/GUIButtonScroller.cpp
parent7947147e81ab0774cabb28c4a27bf5652decff25 (diff)
fixed build: don't use reserved 'id' as c++ member var
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27026 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIButtonScroller.cpp')
-rw-r--r--guilib/GUIButtonScroller.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/guilib/GUIButtonScroller.cpp b/guilib/GUIButtonScroller.cpp
index 7466c8f83a..63170ff3a0 100644
--- a/guilib/GUIButtonScroller.cpp
+++ b/guilib/GUIButtonScroller.cpp
@@ -114,7 +114,7 @@ CGUIButtonScroller::~CGUIButtonScroller(void)
bool CGUIButtonScroller::OnAction(const CAction &action)
{
- if (action.id == ACTION_SELECT_ITEM)
+ if (action.actionId == ACTION_SELECT_ITEM)
{
// send the appropriate message to the parent window
vector<CGUIActionDescriptor> actions = m_vecButtons[GetActiveButton()]->clickActions;
@@ -127,13 +127,13 @@ bool CGUIButtonScroller::OnAction(const CAction &action)
}
return true;
}
- if (action.id == ACTION_CONTEXT_MENU)
+ if (action.actionId == ACTION_CONTEXT_MENU)
{ // send a click message to our parent
- SEND_CLICK_MESSAGE(GetID(), GetParentID(), action.id);
+ SEND_CLICK_MESSAGE(GetID(), GetParentID(), action.actionId);
return true;
}
// smooth scrolling (for analog controls)
- if (action.id == ACTION_SCROLL_UP)
+ if (action.actionId == ACTION_SCROLL_UP)
{
m_fAnalogScrollSpeed += action.amount1 * action.amount1;
bool handled = false;
@@ -147,7 +147,7 @@ bool CGUIButtonScroller::OnAction(const CAction &action)
}
return handled;
}
- if (action.id == ACTION_SCROLL_DOWN)
+ if (action.actionId == ACTION_SCROLL_DOWN)
{
m_fAnalogScrollSpeed += action.amount1 * action.amount1;
bool handled = false;
@@ -900,7 +900,7 @@ bool CGUIButtonScroller::OnMouseEvent(const CPoint &point, const CMouseEvent &ev
else
m_iCurrentSlot = (int)((point.y - m_posY) / (m_imgFocus.GetHeight() + m_buttonGap));
CAction action;
- action.id = ACTION_SELECT_ITEM;
+ action.actionId = ACTION_SELECT_ITEM;
OnAction(action);
return true;
}