diff options
author | xhaggi <sascha.woo@gmail.com> | 2015-07-09 12:01:37 +0200 |
---|---|---|
committer | Matthias Kortstiege <mkortstiege@kodi.tv> | 2015-10-18 11:54:06 +0200 |
commit | eb636ef97de11648fc08eea6c48563373c3859cf (patch) | |
tree | e4498b81196d6d70172505d3bd06d79ee0d2b80b | |
parent | 6dd1ce7a78d33caa2756ad0bf7088de2fd518cb2 (diff) |
[gui] introduce CGUIWindow::OnInfo and call it on ACTION_SHOW_INFO
-rw-r--r-- | xbmc/guilib/GUIWindow.cpp | 2 | ||||
-rw-r--r-- | xbmc/guilib/GUIWindow.h | 1 |
2 files changed, 3 insertions, 0 deletions
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 */ |