From eb636ef97de11648fc08eea6c48563373c3859cf Mon Sep 17 00:00:00 2001 From: xhaggi Date: Thu, 9 Jul 2015 12:01:37 +0200 Subject: [gui] introduce CGUIWindow::OnInfo and call it on ACTION_SHOW_INFO --- xbmc/guilib/GUIWindow.cpp | 2 ++ xbmc/guilib/GUIWindow.h | 1 + 2 files changed, 3 insertions(+) diff --git a/xbmc/guilib/GUIWindow.cpp b/xbmc/guilib/GUIWindow.cpp index 7f9a4325c8..afc6d0196b 100644 --- a/xbmc/guilib/GUIWindow.cpp +++ b/xbmc/guilib/GUIWindow.cpp @@ -440,6 +440,8 @@ bool CGUIWindow::OnAction(const CAction &action) case ACTION_NAV_BACK: case ACTION_PREVIOUS_MENU: return OnBack(action.GetID()); + case ACTION_SHOW_INFO: + return OnInfo(action.GetID()); case ACTION_MENU: if (m_menuControlID > 0) { diff --git a/xbmc/guilib/GUIWindow.h b/xbmc/guilib/GUIWindow.h index 06b2047e65..6fad0a1af8 100644 --- a/xbmc/guilib/GUIWindow.h +++ b/xbmc/guilib/GUIWindow.h @@ -127,6 +127,7 @@ public: virtual bool OnAction(const CAction &action); virtual bool OnBack(int actionID); + virtual bool OnInfo(int actionID) { return false; }; /*! \brief Clear the background (if necessary) prior to rendering the window */ -- cgit v1.2.3