changeset 33095:772af04413f3

Avoid using appMPlayer. Use skin pointer instead.
author ib
date Fri, 01 Apr 2011 13:30:17 +0000
parents 2faf1c3ded5d
children ca1a01b56c90
files gui/skin/skin.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Fri Apr 01 13:00:07 2011 +0000
+++ b/gui/skin/skin.c	Fri Apr 01 13:30:17 2011 +0000
@@ -182,21 +182,21 @@
     strlower(in);
 
     if (strcmp(in, "main") == 0) {
-        currWin = &appMPlayer.main;
-        currWinItemIdx = &appMPlayer.IndexOfMainItems;
-        currWinItems   = appMPlayer.mainItems;
+        currWin = &skin->main;
+        currWinItemIdx = &skin->IndexOfMainItems;
+        currWinItems   = skin->mainItems;
     } else if (strcmp(in, "sub") == 0) {
-        currWin = &appMPlayer.sub;
+        currWin = &skin->sub;
         currWinItemIdx = NULL;
         currWinItems   = NULL;
     } else if (strcmp(in, "playbar") == 0) {
-        currWin = &appMPlayer.bar;
-        currWinItemIdx = &appMPlayer.IndexOfBarItems;
-        currWinItems   = appMPlayer.barItems;
+        currWin = &skin->bar;
+        currWinItemIdx = &skin->IndexOfBarItems;
+        currWinItems   = skin->barItems;
     } else if (strcmp(in, "menu") == 0) {
-        currWin = &appMPlayer.menu;
-        currWinItemIdx = &appMPlayer.IndexOfMenuItems;
-        currWinItems   = appMPlayer.menuItems;
+        currWin = &skin->menu;
+        currWinItemIdx = &skin->IndexOfMenuItems;
+        currWinItems   = skin->menuItems;
     } else {
         skin_error(MSGTR_SKIN_UNKNOWN_NAME, in);
         return 1;