changeset 1780:be1de1dd7262 trunk

[svn] - implement [skin.hints:mainwinVisWidth] property.
author nenolod
date Wed, 04 Oct 2006 03:39:41 -0700
parents 87d4da9b31ea
children 06882533bf8f
files ChangeLog audacious/mainwin.c audacious/widgets/skin.c audacious/widgets/skin.h
diffstat 4 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 03:05:39 2006 -0700
+++ b/ChangeLog	Wed Oct 04 03:39:41 2006 -0700
@@ -1,3 +1,13 @@
+2006-10-04 10:05:39 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2515]
+  - implement [skin.hints:mainwinPlayStatus(X,Y)] properties.
+  
+  trunk/audacious/mainwin.c      |    4 ++++
+  trunk/audacious/widgets/skin.c |   16 ++++++++++++++++
+  trunk/audacious/widgets/skin.h |    3 +++
+  3 files changed, 23 insertions(+)
+
+
 2006-10-04 09:31:31 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2513]
   - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties.
--- a/audacious/mainwin.c	Wed Oct 04 03:05:39 2006 -0700
+++ b/audacious/mainwin.c	Wed Oct 04 03:39:41 2006 -0700
@@ -834,6 +834,10 @@
 	widget_move(WIDGET(mainwin_vis), bmp_active_skin->properties.mainwin_vis_x,
 		bmp_active_skin->properties.mainwin_vis_y);
 
+    if (bmp_active_skin->properties.mainwin_vis_width)
+	widget_resize(WIDGET(mainwin_info), bmp_active_skin->properties.mainwin_vis_width,
+		mainwin_vis->vs_widget.height);
+
     if (bmp_active_skin->properties.mainwin_text_x && bmp_active_skin->properties.mainwin_text_y)
 	widget_move(WIDGET(mainwin_info), bmp_active_skin->properties.mainwin_text_x,
 		bmp_active_skin->properties.mainwin_text_y);
--- a/audacious/widgets/skin.c	Wed Oct 04 03:05:39 2006 -0700
+++ b/audacious/widgets/skin.c	Wed Oct 04 03:39:41 2006 -0700
@@ -567,6 +567,14 @@
         g_free(tmp);
     }
 
+    tmp = read_ini_string(filename, "skin", "mainwinVisWidth");
+
+    if (tmp != NULL)
+    {
+        skin->properties.mainwin_vis_width = atoi(tmp);
+        g_free(tmp);
+    }
+
     tmp = read_ini_string(filename, "skin", "mainwinTextX");
 
     if (tmp != NULL)
--- a/audacious/widgets/skin.h	Wed Oct 04 03:05:39 2006 -0700
+++ b/audacious/widgets/skin.h	Wed Oct 04 03:39:41 2006 -0700
@@ -75,6 +75,7 @@
 	gboolean mainwin_othertext;
 	gint mainwin_vis_x;
 	gint mainwin_vis_y;
+	gint mainwin_vis_width;
 	gint mainwin_text_x;
 	gint mainwin_text_y;
 	gint mainwin_text_width;