[MPlayer-cvslog] r38589 - trunk/gui/dialog/preferences.c

ib subversion at mplayerhq.hu
Thu Jun 20 12:22:10 EEST 2024


Author: ib
Date: Thu Jun 20 12:22:10 2024
New Revision: 38589

Log:
Move the setting of the sensitivity of RGbox.

Move it from CreatePreferences() to ShowPreferences().

Modified:
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Thu Jun 20 12:17:23 2024	(r38588)
+++ trunk/gui/dialog/preferences.c	Thu Jun 20 12:22:10 2024	(r38589)
@@ -694,7 +694,6 @@ static GtkWidget * CreatePreferences( vo
   gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(RGspin), TRUE);
   gtk_box_pack_start(GTK_BOX(RGbox), GTK_WIDGET(RGspin), FALSE, FALSE, 0);
   gtkAddLabel(_(MSGTR_GUI_dB), RGbox);
-  gtk_widget_set_sensitive(RGbox, gtkReplayGainOn);
   gtk_widget_show(RGspin);
 
   CBNormalize=gtkAddCheckButton( _(MSGTR_GUI_NormalizeSound),vbox3 );
@@ -1226,6 +1225,7 @@ void ShowPreferences( void )
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSurround ),gtkAOSurround );
 #endif
  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CBReplayGain), gtkReplayGainOn);
+ prToggled(NULL, GINT_TO_POINTER(11)); // 11 is CBReplayGain, sets sensitivity of RGbox
  gtk_adjustment_set_value(RGadj, gtkReplayGainAdjustment);
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBExtraStereo ),gtkAOExtraStereo );
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBNormalize ),gtkAONorm );


More information about the MPlayer-cvslog mailing list