summaryrefslogtreecommitdiff
path: root/skins.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-06-03 14:46:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-06-03 14:46:36 +0200
commit0d4cf40b79951b8301ee2b9a3bc359c9f9c85c82 (patch)
tree4cf021d807ea68a461757018ea393a7c7afd4ec9 /skins.c
parent56744b1f4e4da2bdcf64a44be11cc05c0e0c5c00 (diff)
downloadvdr-0d4cf40b79951b8301ee2b9a3bc359c9f9c85c82.tar.gz
vdr-0d4cf40b79951b8301ee2b9a3bc359c9f9c85c82.tar.bz2
When the 'skincurses' plugin is loaded, it automatically sets the 'curses' skin as the current one
Diffstat (limited to 'skins.c')
-rw-r--r--skins.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/skins.c b/skins.c
index c3c93961..7a9682ed 100644
--- a/skins.c
+++ b/skins.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.c 1.10 2006/06/03 10:18:07 kls Exp $
+ * $Id: skins.c 1.11 2006/06/03 14:39:14 kls Exp $
*/
#include "skins.h"
@@ -176,7 +176,6 @@ cSkin::cSkin(const char *Name, cTheme *Theme)
if (theme)
cThemes::Save(name, theme);
Skins.Add(this);
- Skins.SetCurrent(Name);
}
cSkin::~cSkin()
@@ -203,12 +202,17 @@ bool cSkins::SetCurrent(const char *Name)
if (Name) {
for (cSkin *Skin = First(); Skin; Skin = Next(Skin)) {
if (strcmp(Skin->Name(), Name) == 0) {
+ isyslog("setting current skin to \"%s\"", Name);
current = Skin;
return true;
}
}
}
current = First();
+ if (current)
+ isyslog("skin \"%s\" not available - using \"%s\" instead", Name, current->Name());
+ else
+ esyslog("ERROR: no skin available");
return current != NULL;
}