[MPlayer-cvslog] r38594 - trunk/gui/dialog/preferences.c
ib
subversion at mplayerhq.hu
Thu Jun 20 13:06:16 EEST 2024
Author: ib
Date: Thu Jun 20 13:06:16 2024
New Revision: 38594
Log:
Collect related CONFIG_ASS statements.
Modified:
trunk/gui/dialog/preferences.c
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Thu Jun 20 12:42:16 2024 (r38593)
+++ trunk/gui/dialog/preferences.c Thu Jun 20 13:06:16 2024 (r38594)
@@ -1350,6 +1350,11 @@ void ShowPreferences( void )
gtk_widget_set_sensitive( SBASSTopMargin,FALSE );
gtk_widget_set_sensitive( SBASSBottomMargin,FALSE );
}
+#else
+ gtk_widget_set_sensitive( CBUseASS,FALSE );
+ gtk_widget_set_sensitive( CBASSUseMargins,FALSE );
+ gtk_widget_set_sensitive( SBASSTopMargin,FALSE );
+ gtk_widget_set_sensitive( SBASSBottomMargin,FALSE );
#endif
gtk_adjustment_set_value( HSSubDelayadj,sub_delay );
@@ -1505,14 +1510,6 @@ void ShowPreferences( void )
if ( cdrom_device ) gtk_entry_set_text( GTK_ENTRY( prECDRomDevice ),cdrom_device );
else gtk_entry_set_text( GTK_ENTRY( prECDRomDevice ),DEFAULT_CDROM_DEVICE );
-/* disables */
-#ifndef CONFIG_ASS
- gtk_widget_set_sensitive( CBUseASS,FALSE );
- gtk_widget_set_sensitive( CBASSUseMargins,FALSE );
- gtk_widget_set_sensitive( SBASSTopMargin,FALSE );
- gtk_widget_set_sensitive( SBASSBottomMargin,FALSE );
-#endif
-
/* signals */
g_signal_connect( G_OBJECT( CBExtraStereo ),"toggled",G_CALLBACK( prToggled ),GINT_TO_POINTER(0) );
g_signal_connect( G_OBJECT( CBNormalize ),"toggled",G_CALLBACK( prToggled ),GINT_TO_POINTER(1) );
More information about the MPlayer-cvslog
mailing list