diff gui/skin/skin.c @ 32877:a095a4ed8ad3

Change message levels to 'error'. Because all these messages indicate that an error has occurred and additionally the processing stops, 'error' is the right message level. The GUI user will now be informed about these errors. Furthermore, the message names and texts have been revised.
author ib
date Thu, 24 Feb 2011 17:47:40 +0000
parents 176bd475b6f3
children afa6f80b0867
line wrap: on
line diff
--- a/gui/skin/skin.c	Thu Feb 24 15:28:37 2011 +0000
+++ b/gui/skin/skin.c	Thu Feb 24 17:47:40 2011 +0000
@@ -55,7 +55,7 @@
     vsnprintf(p, sizeof(p), format, ap);
     va_end(ap);
 
-    mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_SKIN_ERRORMESSAGE, linenumber, p);
+    mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_SKIN_ERRORMESSAGE, linenumber, p);
     snprintf(tmp, sizeof(tmp), MSGTR_SKIN_ERRORMESSAGE, linenumber, p);
     gtkMessageBox(GTK_MB_FATAL, tmp);
 }
@@ -64,7 +64,7 @@
     { \
         if (defList == NULL) \
         { \
-            mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_SKIN_WARNING1, linenumber, str); \
+            ERRORMESSAGE(MSGTR_SKIN_ERROR_SECTION, str); \
             return 1; \
         } \
     }
@@ -73,7 +73,7 @@
     { \
         if (!window_name[0]) \
         { \
-            mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_SKIN_WARNING2, linenumber, str); \
+            ERRORMESSAGE(MSGTR_SKIN_ERROR_WINDOW, str); \
             return 1; \
         } \
     }
@@ -82,7 +82,7 @@
     { \
         if (!strcmp(window_name, name)) \
         { \
-            mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_SKIN_WARNING3, linenumber, name); \
+            ERRORMESSAGE(MSGTR_SKIN_ERROR_IN_WINDOW, name); \
             return 1; \
         } \
     }
@@ -875,7 +875,7 @@
         fn = setname(skinMPlayerDir, dname);
 
         if ((skinFile = fopen(fn, "rt")) == NULL) {
-            mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_SKIN_SkinFileNotFound, fn);
+            mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_SKIN_SkinFileNotFound, fn);
             return -1;
         }
     }
@@ -911,7 +911,7 @@
     }
 
     if (linenumber == 0) {
-        mp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_SKIN_SkinFileNotReadable, fn);
+        mp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_SKIN_SkinFileNotReadable, fn);
         return -1;
     }