diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 7676f8ea3..7e01e645c 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -1,6 +1,11 @@ AM_CPPFLAGS = -fno-rtti -fno-exceptions #AM_CPPFLAGS = -fno-rtti +svn_version.h: + sleep 30 && rm svn_version.h & echo "#define SVNVERSION \"$$(svnversion -n || echo svn_oops!)\" " > svn_version.h + +noinst_HEADERS = svn_version.h + SUBDIRS = widget bedit INCLUDES = \ @@ -34,4 +39,3 @@ libneutrino_gui2_a_SOURCES = \ libtimerlist_a_SOURCES = \ timerlist.cpp - diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index e7629cdc2..ab83bc450 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -37,6 +37,8 @@ #include #include +#include "svn_version.h" +#define SVN_REV "SVN Rev.:" extern cVideo * videoDecoder; extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */ @@ -87,7 +89,10 @@ void CImageInfo::Init(void) offset = tmpoffset; } } - + int off_tmp = g_Font[font_info]->getRenderWidth(SVN_REV); + if(off_tmp > offset) + offset = off_tmp; + offset = offset + 15; } @@ -175,7 +180,6 @@ void CImageInfo::paint() ypos += hheight; ypos += (iheight >>1); - CConfigFile config('\t'); config.loadConfig("/.version"); @@ -191,7 +195,6 @@ void CImageInfo::paint() sprintf((char*) imagedate, "%s %s", versionInfo.getDate(), versionInfo.getTime()); ypos += iheight; - paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_IMAGE)); paintLine(xpos+offset, font_info, imagename); @@ -203,6 +206,10 @@ void CImageInfo::paint() paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_VERSION)); paintLine(xpos+offset, font_info, releaseCycle); + ypos += iheight; + paintLine(xpos , font_info, SVN_REV); + paintLine(xpos+offset, font_info, SVNVERSION ); + ypos += iheight; paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_CREATOR)); paintLine(xpos+offset, font_info, creator);