aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIButtonControl.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-11-24 02:13:40 +0000
committerjmarshallnz <jmarshallnz@svn>2009-11-24 02:13:40 +0000
commit9d046b5a2882650c37dbc38f63a0c9e880ea89e2 (patch)
treee3a12008c076dd593a6ca513f9997f3d0311485b /guilib/GUIButtonControl.cpp
parent8877348f00f15f51ff1955d39acfd4f21fb6050d (diff)
added: comments to non-obvious code.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24963 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIButtonControl.cpp')
-rw-r--r--guilib/GUIButtonControl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/guilib/GUIButtonControl.cpp b/guilib/GUIButtonControl.cpp
index c9a740e993..be9250886d 100644
--- a/guilib/GUIButtonControl.cpp
+++ b/guilib/GUIButtonControl.cpp
@@ -310,7 +310,7 @@ void CGUIButtonControl::OnClick()
void CGUIButtonControl::OnFocus()
{
for (unsigned int i = 0; i < m_focusActions.size(); i++)
- {
+ { // send using a thread message to ensure the UI is updated prior to message firing.
CGUIMessage message(GUI_MSG_EXECUTE, m_controlID, m_parentID);
message.SetAction(m_focusActions[i]);
g_windowManager.SendThreadMessage(message);
@@ -320,7 +320,7 @@ void CGUIButtonControl::OnFocus()
void CGUIButtonControl::OnUnFocus()
{
for (unsigned int i = 0; i < m_unfocusActions.size(); i++)
- {
+ { // send using a thread message to ensure the UI is updated prior to message firing.
CGUIMessage message(GUI_MSG_EXECUTE, m_controlID, m_parentID);
message.SetAction(m_unfocusActions[i]);
g_windowManager.SendThreadMessage(message);