changeset 2607:2d3ddf80cffd

remove few equalizerwin related if 0's
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 14:53:26 +0200
parents b53841a1b5d3
children 857910a58188 5c769ade286a
files src/skins/ui_main.c
diffstat 1 files changed, 5 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_main.c	Wed May 21 14:45:16 2008 +0200
+++ b/src/skins/ui_main.c	Wed May 21 14:53:26 2008 +0200
@@ -53,6 +53,7 @@
 #include "icons-stock.h"
 #include "actions-mainwin.h"
 #include "ui_manager.h"
+#include "ui_equalizer.h"
 #if 0
 #include "configdb.h"
 #include "dnd.h"
@@ -64,7 +65,6 @@
 #include "strings.h"
 #include "ui_credits.h"
 #include "ui_dock.h"
-#include "ui_equalizer.h"
 #include "ui_fileinfo.h"
 #include "ui_fileopener.h"
 #include "ui_hints.h"
@@ -1617,9 +1617,7 @@
 
     gint vol = (pos * 100) / 51;
     mainwin_adjust_volume_motion(vol);
-#if 0
     equalizerwin_set_volume_slider(vol);
-#endif
 }
 
 gboolean
@@ -1640,9 +1638,7 @@
 {
     gint bal = ((pos - 12) * 100) / 12;
     mainwin_adjust_balance_motion(bal);
-#if 0
     equalizerwin_set_balance_slider(bal);
-#endif
 }
 
 void
@@ -1662,9 +1658,8 @@
 
     mainwin_adjust_volume_motion(vol);
     mainwin_set_volume_slider(vol);
-#if 0
     equalizerwin_set_volume_slider(vol);
-#endif
+
     if (mainwin_volume_release_timeout)
         g_source_remove(mainwin_volume_release_timeout);
     mainwin_volume_release_timeout =
@@ -1678,9 +1673,7 @@
     b = CLAMP(balance + diff, -100, 100);
     mainwin_adjust_balance_motion(b);
     mainwin_set_balance_slider(b);
-#if 0
     equalizerwin_set_balance_slider(b);
-#endif
 }
 
 void
@@ -1781,10 +1774,9 @@
     config.scaled = scaled;
 
     mainwin_set_scaled(scaled);
-#if 0
+
     if (config.eq_scaled_linked)
         equalizerwin_set_scaled(scaled);
-#endif
 }
 
 
@@ -1825,13 +1817,14 @@
             else
                 playlistwin_hide();
             break;
+#endif
         case MAINWIN_GENERAL_SHOWEQWIN:
             if (GTK_CHECK_MENU_ITEM(item)->active)
                 equalizerwin_real_show();
             else
                 equalizerwin_real_hide();
             break;
-#endif
+
         case MAINWIN_GENERAL_PREV:
             aud_playlist_prev(playlist);
             break;
@@ -2021,13 +2014,9 @@
         b = 0;
 
     mainwin_set_volume_slider(v);
-#if 0
     equalizerwin_set_volume_slider(v);
-#endif
     mainwin_set_balance_slider(b);
-#if 0
     equalizerwin_set_balance_slider(b);
-#endif
 }
 
 static void
@@ -2699,9 +2688,7 @@
 void
 action_roll_up_equalizer( GtkToggleAction * action )
 {
-#if 0
     equalizerwin_set_shade_menu_cb(gtk_toggle_action_get_active(action));
-#endif
 }
 
 void
@@ -2721,12 +2708,10 @@
 void
 action_show_equalizer( GtkToggleAction * action )
 {
-#if 0
     if (gtk_toggle_action_get_active(action))
         equalizerwin_real_show();
     else
         equalizerwin_real_hide();
-#endif
 }
 
 void