changeset 1949:4f869110ac7b trunk

[svn] - do not evaluate mainwinHeight() or mainwinWidth() in skin scripts if doublesize is on
author nenolod
date Sun, 05 Nov 2006 17:45:59 -0800
parents 78e8d9dd5036
children d012e8d8c3b3
files ChangeLog audacious/mainwin.c
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 05 15:09:25 2006 -0800
+++ b/ChangeLog	Sun Nov 05 17:45:59 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-05 23:09:25 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2853]
+  - only use g_unichar_iswide_cjk if GLib 2.12 is available.
+  
+  trunk/audtool/audtool.c |    5 ++++-
+  1 file changed, 4 insertions(+), 1 deletion(-)
+
+
 2006-11-05 22:27:21 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2851]
   - remove symbols relating to GNOME_VFS
--- a/audacious/mainwin.c	Sun Nov 05 15:09:25 2006 -0800
+++ b/audacious/mainwin.c	Sun Nov 05 17:45:59 2006 -0800
@@ -1031,6 +1031,9 @@
     else
         widget_hide(WIDGET(mainwin_vis));
 
+    if (cfg.doublesize)
+        return;
+
     /* window size, mainwinWidth && mainwinHeight properties */
     if (bmp_active_skin->properties.mainwin_height && bmp_active_skin->properties.mainwin_width)
     {
@@ -1038,12 +1041,6 @@
 
 	gdk_window_get_size(mainwin->window, &width, &height);
 
-	if (width == bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1) &&
-		height == bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1))
-	{
-		return;
-	}
-
         dock_window_resize(GTK_WINDOW(mainwin), cfg.player_shaded ? MAINWIN_SHADED_WIDTH : bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
 		cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1),
 		bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),