diff options
| author | LarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b> | 2006-05-08 20:45:41 +0000 |
|---|---|---|
| committer | LarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b> | 2006-05-08 20:45:41 +0000 |
| commit | aaf14309a9419704c1c851acdb77a26841fb13eb (patch) | |
| tree | 0c9b899e3c893218601cc95202538837daf049f2 | |
| parent | d9afa0ddedc6469b933d6129507843d5a89ed67a (diff) | |
| download | vdr-plugin-muggle-aaf14309a9419704c1c851acdb77a26841fb13eb.tar.gz vdr-plugin-muggle-aaf14309a9419704c1c851acdb77a26841fb13eb.tar.bz2 | |
Rework problem with messaging functions
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@945 e10066b5-e1e2-0310-b819-94efdf66514b
| -rw-r--r-- | vdr_menu.c | 7 | ||||
| -rw-r--r-- | vdr_menu.h | 2 | ||||
| -rw-r--r-- | vdr_player.c | 1 |
3 files changed, 10 insertions, 0 deletions
@@ -829,6 +829,13 @@ mgMainMenu::Message1(const char *msg, ...) return m_message; } +const char* +mgMainMenu::Message1(const char *msg, const string &arg) +{ + if (strlen(msg)==0) return 0; + asprintf(&m_message, tr(msg), arg.c_str()); + return m_message; +} eOSState mgMainMenu::ProcessKey (eKeys key) { @@ -178,6 +178,8 @@ class mgMainMenu:public cOsdMenu const char* Message1 (const char *msg, ...) __attribute__ ((format (printf, 2, 3))); + const char* Message1 (const char *msg, const string &arg); + //! \brief Actions can request a new position. -1 means none wanted int newposition; diff --git a/vdr_player.c b/vdr_player.c index e508fc3..f27177c 100644 --- a/vdr_player.c +++ b/vdr_player.c @@ -1147,6 +1147,7 @@ void mgPCMPlayer::TransferImageTFT( string cover ) if( graphtft ) { graphtft->SetupParse( "CoverImage", cover.c_str() ); + cout << "Image sent: " << cover.c_str() << endl; } } |
