# HG changeset patch # User ib # Date 1308337143 0 # Node ID 5d5f66b52c62a30625368a013cc7c8e2ee98859e # Parent fea429f90bfdacf212e16fba011384b74a52bd71 Add a warning message for unavailable or unusable icons. This is a preparation for differently sized icons to come. diff -r fea429f90bfd -r 5d5f66b52c62 gui/mplayer/widgets.c --- a/gui/mplayer/widgets.c Fri Jun 17 18:31:35 2011 +0000 +++ b/gui/mplayer/widgets.c Fri Jun 17 18:59:03 2011 +0000 @@ -118,7 +118,8 @@ for (i = 2; i < guiIcon.collection_size; data += 4, i++) guiIcon.collection[i] = (data[3] << 24) | AV_RB24(data); // RGBA -> ARGB } - } + } else + mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_ICONERROR, "mplayer"); // start up GTK which realizes the pixmaps gtk_main_iteration_do(FALSE); diff -r fea429f90bfd -r 5d5f66b52c62 help/help_mp-de.h --- a/help/help_mp-de.h Fri Jun 17 18:31:35 2011 +0000 +++ b/help/help_mp-de.h Fri Jun 17 18:59:03 2011 +0000 @@ -782,6 +782,7 @@ #define MSGTR_NEMFMR "Sorry, nicht genug Speicher für Menü-Rendering." #define MSGTR_IDFGCVD "Sorry, es wurde kein GUI-kompatibler Ausgabetreiber gefunden.\n" #define MSGTR_NEEDLAVC "Sorry, du versuchst, Nicht-MPEG Dateien ohne erneute Encodierung abzuspielen.\nBitte aktiviere lavc in der DXR3/H+-Konfigurationsbox." +#define MSGTR_ICONERROR "Icon '%s' wurde nicht gefunden oder das Format wird nicht unterstützt.\n" // --- skin loader error messages #define MSGTR_SKIN_ERRORMESSAGE "Fehler in Skin-Konfigurationsdatei in Zeile %d: %s" diff -r fea429f90bfd -r 5d5f66b52c62 help/help_mp-en.h --- a/help/help_mp-en.h Fri Jun 17 18:31:35 2011 +0000 +++ b/help/help_mp-en.h Fri Jun 17 18:59:03 2011 +0000 @@ -574,6 +574,7 @@ #define MSGTR_NEMFMR "Sorry, not enough memory for menu rendering." #define MSGTR_IDFGCVD "Sorry, no GUI-compatible video output driver found.\n" #define MSGTR_NEEDLAVC "Sorry, you cannot play non-MPEG files with your DXR3/H+ device without reencoding.\nPlease enable lavc in the DXR3/H+ configuration box." +#define MSGTR_ICONERROR "Icon '%s' not found or unsupported format.\n" // --- skin loader error messages #define MSGTR_SKIN_ERRORMESSAGE "Error in skin config file on line %d: %s"