Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[cleanup] convert a few g_windowManager.SendMessage()'s to OnMessage()

  • Loading branch information...
commit 5bf55b2f236cd11879be69bd42e18dcd8b4af8fb 1 parent 7c52d33
Jonathan Marshall authored
4 xbmc/settings/dialogs/GUIDialogContentSettings.cpp
View
@@ -88,7 +88,7 @@ bool CGUIDialogContentSettings::OnMessage(CGUIMessage &message)
if (iControl == CONTROL_CONTENT_TYPE)
{
CGUIMessage msg(GUI_MSG_ITEM_SELECTED, GetID(), CONTROL_CONTENT_TYPE);
- g_windowManager.SendMessage(msg);
+ OnMessage(msg);
m_content = static_cast<CONTENT_TYPE>(msg.GetParam1());
SetupView();
}
@@ -100,7 +100,7 @@ bool CGUIDialogContentSettings::OnMessage(CGUIMessage &message)
break;
CGUIMessage msg(GUI_MSG_ITEM_SELECTED, GetID(), CONTROL_SCRAPER_LIST);
- g_windowManager.SendMessage(msg);
+ OnMessage(msg);
int iSelected = msg.GetParam1();
if (iSelected == m_vecItems->Size() - 1)
{ // Get More... item, path 'addons://more/<content>'
3  xbmc/windows/GUIWindowWeather.cpp
View
@@ -23,7 +23,6 @@
#include "dialogs/GUIDialogOK.h"
#include "GUIWindowWeather.h"
#include "utils/Weather.h"
-#include "guilib/GUIWindowManager.h"
#include "utils/URIUtils.h"
#ifdef HAS_PYTHON
#include "interfaces/python/XBPython.h"
@@ -85,7 +84,7 @@ bool CGUIWindowWeather::OnMessage(CGUIMessage& message)
else if (iControl == CONTROL_SELECTLOCATION)
{
CGUIMessage msg(GUI_MSG_ITEM_SELECTED,GetID(),CONTROL_SELECTLOCATION);
- g_windowManager.SendMessage(msg);
+ OnMessage(msg);
SetLocation(msg.GetParam1());
}
Please sign in to comment.
Something went wrong with that request. Please try again.