diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 3177d3601..a98c80ecc 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -321,7 +321,7 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear) stars *= 10; // recalculate stars value for starbar int stars_w = 0, stars_h = 0; - g_PicViewer->getSize(imdb->stars_bg.c_str(), &stars_w, &stars_h); + g_PicViewer->getSize(NEUTRINO_ICON_STARS_BG, &stars_w, &stars_h); //create starbar item CProgressBar *cc_starbar = new CProgressBar(); diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index 8ecbbf670..98aaf837f 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -48,8 +48,6 @@ CIMDB::CIMDB() IMDbAPI = "/tmp/imdb.json"; omdbapiKey = "&apikey=20711f9e"; posterfile = "/tmp/imdb.jpg"; - stars_bg = ICONSDIR "/stars_bg.png"; - stars = ICONSDIR "/stars.png"; } CIMDB::~CIMDB() diff --git a/src/gui/imdb.h b/src/gui/imdb.h index 0e532ac02..cccb86465 100644 --- a/src/gui/imdb.h +++ b/src/gui/imdb.h @@ -41,8 +41,6 @@ class CIMDB std::string soutfile; std::string IMDbAPI; std::string posterfile; - std::string stars_bg; - std::string stars; int getIMDb(const std::string& epgTitle); std::string getFilename(CZapitChannel * channel, uint64_t id); diff --git a/src/gui/widget/icons.h b/src/gui/widget/icons.h index 345a9d041..90b43fed5 100644 --- a/src/gui/widget/icons.h +++ b/src/gui/widget/icons.h @@ -183,6 +183,8 @@ #define NEUTRINO_ICON_PIP "pip" #define NEUTRINO_ICON_STAR_ON "star-on" #define NEUTRINO_ICON_STAR_OFF "star-off" +#define NEUTRINO_ICON_STARS_BG "stars_bg.png" //NI +#define NEUTRINO_ICON_STARS "stars.png" //NI #define NEUTRINO_ICON_TMDB "tmdb" #define NEUTRINO_ICON_IMDB "imdb" #define NEUTRINO_ICON_PICTUREVIEWER "pictureviewer"