changeset 1783:9ed09a2c878e trunk

[svn] The default values for old skins were wrong. But since changing from the new skin to an old doesn't work anyway, we can set these to 0 so that the old skins at least work when Audacious is restarted.
author js
date Wed, 04 Oct 2006 12:47:37 -0700
parents b70379f03786
children 641ee4092aea
files ChangeLog audacious/widgets/skin.c
diffstat 2 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 04:17:35 2006 -0700
+++ b/ChangeLog	Wed Oct 04 12:47:37 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-04 11:17:35 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2521]
+  - 1.2 skin, EARLY VERSION OF IT. I am *sure* nhjm449 will tweak it a lot.
+  
+  trunk/skin/skin.hints |   21 ++++++++++++++++++++-
+  1 file changed, 20 insertions(+), 1 deletion(-)
+
+
 2006-10-04 10:41:41 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2519]
   - default skin.hints:mainwinVisWidth value
--- a/audacious/widgets/skin.c	Wed Oct 04 04:17:35 2006 -0700
+++ b/audacious/widgets/skin.c	Wed Oct 04 12:47:37 2006 -0700
@@ -530,10 +530,16 @@
 
     path_p = path_p ? path_p : skin->path;
 
-    skin->properties.mainwin_othertext = 0;
-    skin->properties.mainwin_vis_x = 24;
-    skin->properties.mainwin_vis_y = 43;
-    skin->properties.mainwin_vis_width = 76;
+    /*
+     * Changing from the new skin to an old skin doesn't work yet, so we can
+     * as well set these defaults to 0 so that old skins at least work when
+     * Audacious is restarted. The values commented out are the wrong values
+     * which were here before.
+     */
+    skin->properties.mainwin_othertext = 0;	/*  0 */
+    skin->properties.mainwin_vis_x = 0;		/* 24 */
+    skin->properties.mainwin_vis_y = 0;		/* 43 */
+    skin->properties.mainwin_vis_width = 0;	/* 76 */
 
     filename = find_file_recursively(path_p, "skin.hints");