changeset 3905:c79bf496191f

call to gdk_window_get_size() is also unneeded here; remove.
author William Pitcock <nenolod@atheme.org>
date Tue, 06 Nov 2007 13:13:15 -0600
parents 086b94f5b96f
children ab65ece7aeb9
files src/audacious/ui_main.c
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Tue Nov 06 12:39:15 2007 -0600
+++ b/src/audacious/ui_main.c	Tue Nov 06 13:13:15 2007 -0600
@@ -698,14 +698,10 @@
     /* window size, mainwinWidth && mainwinHeight properties */
     if (bmp_active_skin->properties.mainwin_height && bmp_active_skin->properties.mainwin_width)
     {
-        gint width, height;
-
-        gdk_window_get_size(mainwin->window, &width, &height);
-
         dock_window_resize(GTK_WINDOW(mainwin), cfg.player_shaded ? MAINWIN_SHADED_WIDTH * (cfg.doublesize + 1) : bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
-        cfg.player_shaded ? MAINWIN_SHADED_HEIGHT * (cfg.doublesize + 1) : bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1),
-        bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
-        bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1));
+            cfg.player_shaded ? MAINWIN_SHADED_HEIGHT * (cfg.doublesize + 1) : bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1),
+            bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
+            bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1));
 
         gdk_flush();
     }