From ccf6e0f9c6b0481ed13e0f4794e3fbead750f385 Mon Sep 17 00:00:00 2001 From: Lars Heer Date: Wed, 18 Sep 2013 05:50:03 +0200 Subject: added vdr-plugin-mcli-0.0.1+svn20120927 --- .../vdr-1.6.0-altmenuaction.patch.svn-base | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 patches/.svn/text-base/vdr-1.6.0-altmenuaction.patch.svn-base (limited to 'patches/.svn/text-base/vdr-1.6.0-altmenuaction.patch.svn-base') diff --git a/patches/.svn/text-base/vdr-1.6.0-altmenuaction.patch.svn-base b/patches/.svn/text-base/vdr-1.6.0-altmenuaction.patch.svn-base new file mode 100644 index 0000000..4b06850 --- /dev/null +++ b/patches/.svn/text-base/vdr-1.6.0-altmenuaction.patch.svn-base @@ -0,0 +1,38 @@ +Index: plugin.h +=================================================================== +--- plugin.h (revision 2072) ++++ plugin.h (working copy) +@@ -45,7 +45,8 @@ + + virtual const char *MainMenuEntry(void); + virtual cOsdObject *MainMenuAction(void); +- ++ virtual cOsdObject *AltMenuAction(void) { return NULL; }; ++ + virtual cMenuSetupPage *SetupMenu(void); + virtual bool SetupParse(const char *Name, const char *Value); + void SetupStore(const char *Name, const char *Value = NULL); +Index: vdr.c +=================================================================== +--- vdr.c (revision 2072) ++++ vdr.c (working copy) +@@ -929,6 +929,19 @@ + Recordings.Update(); + DeletedRecordings.Update(); + } ++ cPlugin *mcliPlugin = cPluginManager::GetPlugin("mcli"); ++ if (mcliPlugin) { ++ if (!ShutdownHandler.countdown) { // if kPower has been pressed, cMenuShutdown takes precedence over other menus ++ cOsdObject *MyMenu = mcliPlugin->AltMenuAction(); ++ if (MyMenu) { // is there any cam-menu waiting? ++ DELETE_MENU; ++ if (cControl::Control()) ++ cControl::Control()->Hide(); ++ Menu = MyMenu; ++ Menu->Show(); ++ } ++ } ++ } + // CAM control: + if (!Menu && !cOsd::IsOpen()) + Menu = CamControl(); -- cgit v1.2.3