changeset 1774:2d97cd03319e trunk

[svn] - allow elements to be repositioned if they are mentioned in skin.hints
author nenolod
date Wed, 04 Oct 2006 01:45:01 -0700
parents 7913bae43086
children 7d32dff734da
files ChangeLog audacious/mainwin.c
diffstat 2 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 01:38:46 2006 -0700
+++ b/ChangeLog	Wed Oct 04 01:45:01 2006 -0700
@@ -1,3 +1,12 @@
+2006-10-04 08:38:46 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2503]
+  - text and infobar
+  
+  trunk/audacious/widgets/skin.c |   32 ++++++++++++++++++++++++++++++++
+  trunk/audacious/widgets/skin.h |    4 ++++
+  2 files changed, 36 insertions(+)
+
+
 2006-10-04 08:35:28 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2501]
   - framework for repositioning the vis element on the skin.
--- a/audacious/mainwin.c	Wed Oct 04 01:38:46 2006 -0700
+++ b/audacious/mainwin.c	Wed Oct 04 01:45:01 2006 -0700
@@ -827,6 +827,18 @@
 	widget_show(WIDGET(mainwin_monostereo));
 	widget_hide(WIDGET(mainwin_othertext));
     }
+
+    if (bmp_active_skin->properties.mainwin_vis_x && bmp_active_skin->properties.mainwin_vis_y)
+	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_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);
+
+    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);
 }
 
 void