changeset 3050:a4288aa638b8

correct showing equalizerwin
author Tomasz Mon <desowin@gmail.com>
date Thu, 12 Jul 2007 15:34:11 +0200
parents 1a1116e50ad6
children befb8b7df9e6
files src/audacious/ui_equalizer.c
diffstat 1 files changed, 12 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Thu Jul 12 14:21:39 2007 +0200
+++ b/src/audacious/ui_equalizer.c	Thu Jul 12 15:34:11 2007 +0200
@@ -796,18 +796,6 @@
 
     equalizerwin_set_back_pixmap();
     equalizerwin_create_widgets();
-    gtk_widget_show_all(equalizerwin);
-
-    if (!cfg.equalizer_shaded) {
-        gtk_widget_hide(equalizerwin_volume);
-        gtk_widget_hide(equalizerwin_balance);
-    }
-    else {
-        ui_skinned_set_push_button_data(equalizerwin_shade, -1, 3, -1, 47);
-        ui_skinned_button_set_skin_index1(equalizerwin_shade, SKIN_EQ_EX);
-        ui_skinned_set_push_button_data(equalizerwin_close, 11, 38, 11, 47);
-        ui_skinned_button_set_skin_index(equalizerwin_close, SKIN_EQ_EX);
-    }
 }
 
 
@@ -838,7 +826,18 @@
     draw_equalizer_window(TRUE);
     cfg.equalizer_visible = TRUE;
     UI_SKINNED_BUTTON(mainwin_eq)->inside = TRUE;
-    gtk_widget_queue_draw(mainwin_eq);
+    gtk_widget_show_all(equalizerwin);
+
+    if (!cfg.equalizer_shaded) {
+        gtk_widget_hide(equalizerwin_volume);
+        gtk_widget_hide(equalizerwin_balance);
+    }
+    else {
+        ui_skinned_set_push_button_data(equalizerwin_shade, -1, 3, -1, 47);
+        ui_skinned_button_set_skin_index1(equalizerwin_shade, SKIN_EQ_EX);
+        ui_skinned_set_push_button_data(equalizerwin_close, 11, 38, 11, 47);
+        ui_skinned_button_set_skin_index(equalizerwin_close, SKIN_EQ_EX);
+    }
 
     gtk_window_present(GTK_WINDOW(equalizerwin));
 }