Permalink
Browse files

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

  • Loading branch information...
1 parent 7c52d33 commit 5bf55b2f236cd11879be69bd42e18dcd8b4af8fb Jonathan Marshall committed Jun 15, 2014
Showing with 3 additions and 4 deletions.
  1. +2 −2 xbmc/settings/dialogs/GUIDialogContentSettings.cpp
  2. +1 −2 xbmc/windows/GUIWindowWeather.cpp
@@ -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>'
@@ -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());
}

0 comments on commit 5bf55b2

Please sign in to comment.