NordlichtsEPG-8a-Plugin (DaLiMan)

Message ID 443BFE00.5000206@daliman.de
State New
Headers

Commit Message

vdr@daliman.de April 11, 2006, 7:05 p.m. UTC
  Der gemailte "Patch" ist nicht komplett gewesen und somit auch nicht 
funktionsfähig,
daß kann man in der Antwortmail vom Martin nachlesen. Angefügt habe ich 
jetzt einen
funktionierenden Patch. Sorry.
Gruß, DaLiMan

The first "Patch" was incomplete. This ist the right stuff.
Greet, DaLiMan


--eMail1-------------------------------------------------------------------------------------------
vdr@daliman.de schrieb:

Sorry, but my english is not good enough to translate that.

Ein Fehler im NordlichtsEPG-8b-Plugin bewirkt daß die Beschriftung der 
roten Taste nicht
vorhanden ist, wenn im SetupMenü "Umschalten mit OK" gewählt wurde. Das 
Ändern einer
Codezeile in der Datei nordlichtsepg.c, ca. Zeile 157 " 
*if*(switchwithok)" korrigiert das.

SetHelp(next?tr("Button$Now"):NULL,"<<",">>",tr("Button$Info"));
muß in
SetHelp(next?tr("Button$Now"):tmp,"<<",">>",tr("Button$Info"));
geändert werden.

Gruß, DaLiMan

--eMail2---------------------------------------------------------------------------------------------
Hi,
jumping to the in the setup adjusted time with red doesn't work in 
alternative keymap mode, so it is pretty useless to label the red button 
with this time. Look at the README before complaining about an error 
that isn't one. Btw. is it not your task to give version numbers!
Greets
Martin
  

Patch

diff -Nur nordlichtsepg-0.8a/nordlichtsepg.c nordlichtsepg/nordlichtsepg.c
--- nordlichtsepg-0.8a/nordlichtsepg.c	2006-03-21 14:41:24.000000000 +0100
+++ nordlichtsepg/nordlichtsepg.c	2006-04-11 20:50:22.000000000 +0200
@@ -155,7 +155,8 @@ 
  SetTitle(next?*DayDateTime(t):tr("What's on now?"));
 
  if(switchwithok)
-  SetHelp(next?tr("Button$Now"):NULL,"<<",">>",tr("Button$Info"));
+//daliman   SetHelp(next?tr("Button$Now"):NULL,"<<",">>",tr("Button$Info"));
+  SetHelp(next?tr("Button$Now"):tmp,"<<",">>",tr("Button$Info"));
  else
   SetHelp(bookmark?tmp:NULL,"<<",">>",next?tr("Button$Now"):tr("Button$Switch"));
 
@@ -294,13 +295,22 @@ 
               Display();
               jumpto=1;
               break;
+//daliman
+//     case kRed: if(bookmark)
+//                 JumpTo(bookmark/100,bookmark%100);
+//                break;
+//daliman-ende
+
      case kRed: if(next)
                 {
                  next=false;
                  t=time(NULL);
                  LoadSchedules(0);
                 }
+		else if(bookmark)
+                  JumpTo(bookmark/100,bookmark%100);
                 break;
+
      case kGreen: next=true;
                   LoadSchedules(-1);
                   break;