changeset 1777:17e38b5c8e2f trunk

[svn] - support for the [skin.hints:mainwinTextWidth] property.
author nenolod
date Wed, 04 Oct 2006 02:22:04 -0700
parents 1f8b12f14dfa
children 1d3d05c541d3
files ChangeLog audacious/mainwin.c audacious/widgets/skin.c audacious/widgets/skin.h
diffstat 4 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 02:21:05 2006 -0700
+++ b/ChangeLog	Wed Oct 04 02:22:04 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-04 09:21:05 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [2509]
+  - make audacious re-link when libwidgets.a has been updated.
+  
+  trunk/audacious/Makefile |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2006-10-04 09:15:22 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [2507]
   improvement of shaded playlist window
--- a/audacious/mainwin.c	Wed Oct 04 02:21:05 2006 -0700
+++ b/audacious/mainwin.c	Wed Oct 04 02:22:04 2006 -0700
@@ -838,6 +838,10 @@
 	widget_move(WIDGET(mainwin_info), bmp_active_skin->properties.mainwin_text_x,
 		bmp_active_skin->properties.mainwin_text_y);
 
+    if (bmp_active_skin->properties.mainwin_text_width)
+	widget_resize(WIDGET(mainwin_info), bmp_active_skin->properties.mainwin_text_width,
+		mainwin_info->tb_widget.height);
+
     if (bmp_active_skin->properties.mainwin_infobar_x && bmp_active_skin->properties.mainwin_infobar_y)
 	widget_move(WIDGET(mainwin_othertext), bmp_active_skin->properties.mainwin_infobar_x,
 		bmp_active_skin->properties.mainwin_infobar_y);
--- a/audacious/widgets/skin.c	Wed Oct 04 02:21:05 2006 -0700
+++ b/audacious/widgets/skin.c	Wed Oct 04 02:22:04 2006 -0700
@@ -583,6 +583,14 @@
         g_free(tmp);
     }
 
+    tmp = read_ini_string(filename, "skin", "mainwinTextWidth");
+
+    if (tmp != NULL)
+    {
+        skin->properties.mainwin_text_width = atoi(tmp);
+        g_free(tmp);
+    }
+
     tmp = read_ini_string(filename, "skin", "mainwinInfoBarX");
 
     if (tmp != NULL)
--- a/audacious/widgets/skin.h	Wed Oct 04 02:21:05 2006 -0700
+++ b/audacious/widgets/skin.h	Wed Oct 04 02:22:04 2006 -0700
@@ -77,6 +77,7 @@
 	gint mainwin_vis_y;
 	gint mainwin_text_x;
 	gint mainwin_text_y;
+	gint mainwin_text_width;
 	gint mainwin_infobar_x;
 	gint mainwin_infobar_y;
 } SkinProperties;