changeset 1809:deac24028172 trunk

[svn] - more hardcoded values removed
author nenolod
date Wed, 04 Oct 2006 23:09:40 -0700
parents ae21feb9459c
children df23110701d0
files ChangeLog audacious/mainwin.c
diffstat 2 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 23:05:41 2006 -0700
+++ b/ChangeLog	Wed Oct 04 23:09:40 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-05 06:05:41 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2573]
+  - make sure all size requests match the skin size
+  
+  trunk/audacious/mainwin.c |    7 +++++--
+  1 file changed, 5 insertions(+), 2 deletions(-)
+
+
 2006-10-05 06:02:15 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2571]
   - remove dock_resize.
--- a/audacious/mainwin.c	Wed Oct 04 23:05:41 2006 -0700
+++ b/audacious/mainwin.c	Wed Oct 04 23:09:40 2006 -0700
@@ -544,22 +544,24 @@
 
         textbox_set_scroll(mainwin_info, FALSE);
         if (bmp_playback_get_playing())
-		{
+	{
             	widget_show(WIDGET(mainwin_sposition));
 	        widget_show(WIDGET(mainwin_stime_min));
         	widget_show(WIDGET(mainwin_stime_sec));
-		}
+	}
 	else
-		{
+	{
             	widget_hide(WIDGET(mainwin_sposition));
 	        widget_hide(WIDGET(mainwin_stime_min));
         	widget_hide(WIDGET(mainwin_stime_sec));
-		}
-	
+	}
+
         mainwin_shade->pb_ny = mainwin_shade->pb_py = 27;
     }
     else {
-        dock_shade(dock_window_list, GTK_WINDOW(mainwin), MAINWIN_HEIGHT);
+        dock_shade(dock_window_list, GTK_WINDOW(mainwin),
+		!bmp_active_skin->properties.mainwin_height ? MAINWIN_HEIGHT :
+		     bmp_active_skin->properties.mainwin_height);
 
         widget_hide(WIDGET(mainwin_svis));
         svis_clear_data(mainwin_svis);
@@ -728,8 +730,8 @@
     if (force) {
         if (!cfg.player_shaded)
             skin_draw_pixmap(bmp_active_skin, mainwin_bg, mainwin_gc,
-                             SKIN_MAIN, 0, 0, 0, 0, MAINWIN_WIDTH,
-                             MAINWIN_HEIGHT);
+                             SKIN_MAIN, 0, 0, 0, 0, bmp_active_skin->properties.mainwin_width,
+                             bmp_active_skin->properties.mainwin_height);
         mainwin_draw_titlebar(gtk_window_has_toplevel_focus
                               (GTK_WINDOW(mainwin)));
     }
@@ -3459,7 +3461,7 @@
     gtk_window_set_resizable(GTK_WINDOW(mainwin), FALSE);
 
     width = MAINWIN_WIDTH;
-    height = cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT;
+    height = cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : bmp_active_skin->properties.mainwin_height;
 
     gtk_widget_set_size_request(mainwin, width, height);
     gtk_widget_set_app_paintable(mainwin, TRUE);