changeset 1833:3da01efb3225 trunk

[svn] - support for WA2 skins (no skin.hints)
author nenolod
date Thu, 05 Oct 2006 08:02:43 -0700
parents 1c7e25c619e9
children cf41677e2d7c
files ChangeLog audacious/widgets/skin.c
diffstat 2 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 05 07:57:40 2006 -0700
+++ b/ChangeLog	Thu Oct 05 08:02:43 2006 -0700
@@ -1,3 +1,12 @@
+2006-10-05 14:57:40 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2621]
+  - fix that goddamn skinlist bug
+  
+  trunk/audacious/glade/prefswin.glade |    3 +--
+  trunk/audacious/prefswin.c           |   30 ++++--------------------------
+  2 files changed, 5 insertions(+), 28 deletions(-)
+
+
 2006-10-05 14:46:20 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2619]
   - oops
--- a/audacious/widgets/skin.c	Thu Oct 05 07:57:40 2006 -0700
+++ b/audacious/widgets/skin.c	Thu Oct 05 08:02:43 2006 -0700
@@ -540,13 +540,6 @@
 
     filename = find_file_recursively(path_p, "skin.hints");
 
-    if (filename == NULL)
-        return;
-
-#if 0
-    skin->description = read_ini_string(filename, "skin", "skinDescription");
-#endif
-
     skin->properties.mainwin_othertext = FALSE;
     tmp = read_ini_string(filename, "skin", "mainwinOthertext");
 
@@ -1051,7 +1044,8 @@
         g_free(tmp);
     }
 
-    g_free(filename);
+    if (filename != NULL)
+        g_free(filename);
 }
 
 static guint