comparison gui/dialog/preferences.c @ 36019:d2d776c8e040

Cosmetic: Rename gtkActive() gtkRaise().
author ib
date Sun, 31 Mar 2013 17:08:30 +0000
parents 5c720c434d56
children a04e8798227b
comparison
equal deleted inserted replaced
36018:26836919db4e 36019:d2d776c8e040
445 // break; 445 // break;
446 case 3: 446 case 3:
447 if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) ) ) 447 if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) ) )
448 { 448 {
449 window=wsShowWindow; 449 window=wsShowWindow;
450 gtkActive( Preferences ); 450 gtkRaise( Preferences );
451 } else window=wsHideWindow; 451 } else window=wsHideWindow;
452 // NOTE TO MYSELF: doesn't work with a fullscreen window 452 // NOTE TO MYSELF: doesn't work with a fullscreen window
453 if ( !guiInfo.Playing ) wsWindowVisibility( &guiApp.videoWindow,window ); 453 if ( !guiInfo.Playing ) wsWindowVisibility( &guiApp.videoWindow,window );
454 break; 454 break;
455 case 4: 455 case 4:
1095 return Preferences; 1095 return Preferences;
1096 } 1096 }
1097 1097
1098 void ShowPreferences( void ) 1098 void ShowPreferences( void )
1099 { 1099 {
1100 if ( Preferences ) gtkActive( Preferences ); 1100 if ( Preferences ) gtkRaise( Preferences );
1101 else Preferences=CreatePreferences(); 1101 else Preferences=CreatePreferences();
1102 1102
1103 /* 1st page */ 1103 /* 1st page */
1104 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ),gtkEnableAudioEqualizer ); 1104 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ),gtkEnableAudioEqualizer );
1105 #if 0 1105 #if 0
1675 1675
1676 return AudioConfig; 1676 return AudioConfig;
1677 } 1677 }
1678 1678
1679 void ShowAudioConfig( void ) { 1679 void ShowAudioConfig( void ) {
1680 if (AudioConfig) gtkActive(AudioConfig); 1680 if (AudioConfig) gtkRaise(AudioConfig);
1681 else AudioConfig = CreateAudioConfig(); 1681 else AudioConfig = CreateAudioConfig();
1682 1682
1683 #ifdef CONFIG_OSS_AUDIO 1683 #ifdef CONFIG_OSS_AUDIO
1684 if (strncmp(ao_driver[0], "oss", 3) == 0) { 1684 if (strncmp(ao_driver[0], "oss", 3) == 0) {
1685 setGtkEntryText(CEAudioDevice, gtkAOOSSDevice); 1685 setGtkEntryText(CEAudioDevice, gtkAOOSSDevice);
1721 1721
1722 GtkWidget * CreateDXR3Config( void ); 1722 GtkWidget * CreateDXR3Config( void );
1723 1723
1724 void ShowDXR3Config( void ) 1724 void ShowDXR3Config( void )
1725 { 1725 {
1726 if ( DXR3Config ) gtkActive( DXR3Config ); 1726 if ( DXR3Config ) gtkRaise( DXR3Config );
1727 else DXR3Config=CreateDXR3Config(); 1727 else DXR3Config=CreateDXR3Config();
1728 1728
1729 gtk_entry_set_text( GTK_ENTRY( CEDXR3Device ),gtkDXR3Device ); 1729 gtk_entry_set_text( GTK_ENTRY( CEDXR3Device ),gtkDXR3Device );
1730 1730
1731 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVNone ),TRUE ); 1731 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVNone ),TRUE );