Mercurial > mplayer.hg
comparison gui/dialog/preferences.c @ 35996:6c891a0e3fea
Cosmetic: Rename the functions creating the dialogs.
author | ib |
---|---|
date | Fri, 29 Mar 2013 13:43:21 +0000 |
parents | 029706e763d1 |
children | 8fea01665c83 |
comparison
equal
deleted
inserted
replaced
35995:454b0a86d1e8 | 35996:6c891a0e3fea |
---|---|
508 #endif | 508 #endif |
509 break; | 509 break; |
510 } | 510 } |
511 } | 511 } |
512 | 512 |
513 static GtkWidget * create_Preferences( void ) | 513 static GtkWidget * CreatePreferences( void ) |
514 { | 514 { |
515 GtkWidget * label; | 515 GtkWidget * label; |
516 GtkWidget * frame; | 516 GtkWidget * frame; |
517 | 517 |
518 GtkWidget * vbox1; | 518 GtkWidget * vbox1; |
1090 } | 1090 } |
1091 | 1091 |
1092 void ShowPreferences( void ) | 1092 void ShowPreferences( void ) |
1093 { | 1093 { |
1094 if ( Preferences ) gtkActive( Preferences ); | 1094 if ( Preferences ) gtkActive( Preferences ); |
1095 else Preferences=create_Preferences(); | 1095 else Preferences=CreatePreferences(); |
1096 | 1096 |
1097 /* 1st page */ | 1097 /* 1st page */ |
1098 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ),gtkEnableAudioEqualizer ); | 1098 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAudioEqualizer ),gtkEnableAudioEqualizer ); |
1099 #if 0 | 1099 #if 0 |
1100 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSurround ),gtkAOSurround ); | 1100 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSurround ),gtkAOSurround ); |
1553 HideAudioConfig(); | 1553 HideAudioConfig(); |
1554 break; | 1554 break; |
1555 } | 1555 } |
1556 } | 1556 } |
1557 | 1557 |
1558 static GtkWidget *create_AudioConfig( void ) { | 1558 static GtkWidget *CreateAudioConfig( void ) { |
1559 GList *items = NULL; | 1559 GList *items = NULL; |
1560 GtkWidget *vbox; | 1560 GtkWidget *vbox; |
1561 GtkWidget *table; | 1561 GtkWidget *table; |
1562 GtkWidget *label; | 1562 GtkWidget *label; |
1563 GtkWidget *hbuttonbox; | 1563 GtkWidget *hbuttonbox; |
1675 return AudioConfig; | 1675 return AudioConfig; |
1676 } | 1676 } |
1677 | 1677 |
1678 void ShowAudioConfig( void ) { | 1678 void ShowAudioConfig( void ) { |
1679 if (AudioConfig) gtkActive(AudioConfig); | 1679 if (AudioConfig) gtkActive(AudioConfig); |
1680 else AudioConfig = create_AudioConfig(); | 1680 else AudioConfig = CreateAudioConfig(); |
1681 | 1681 |
1682 #ifdef CONFIG_OSS_AUDIO | 1682 #ifdef CONFIG_OSS_AUDIO |
1683 if (strncmp(ao_driver[0], "oss", 3) == 0) { | 1683 if (strncmp(ao_driver[0], "oss", 3) == 0) { |
1684 setGtkEntryText(CEAudioDevice, gtkAOOSSDevice); | 1684 setGtkEntryText(CEAudioDevice, gtkAOOSSDevice); |
1685 setGtkEntryText(CEAudioMixer, gtkAOOSSMixer); | 1685 setGtkEntryText(CEAudioMixer, gtkAOOSSMixer); |
1716 static GtkWidget * RBVNone; | 1716 static GtkWidget * RBVNone; |
1717 static GtkWidget * RBVLavc; | 1717 static GtkWidget * RBVLavc; |
1718 static GtkWidget * dxr3BOk; | 1718 static GtkWidget * dxr3BOk; |
1719 static GtkWidget * dxr3BCancel; | 1719 static GtkWidget * dxr3BCancel; |
1720 | 1720 |
1721 GtkWidget * create_DXR3Config( void ); | 1721 GtkWidget * CreateDXR3Config( void ); |
1722 | 1722 |
1723 void ShowDXR3Config( void ) | 1723 void ShowDXR3Config( void ) |
1724 { | 1724 { |
1725 if ( DXR3Config ) gtkActive( DXR3Config ); | 1725 if ( DXR3Config ) gtkActive( DXR3Config ); |
1726 else DXR3Config=create_DXR3Config(); | 1726 else DXR3Config=CreateDXR3Config(); |
1727 | 1727 |
1728 gtk_entry_set_text( GTK_ENTRY( CEDXR3Device ),gtkDXR3Device ); | 1728 gtk_entry_set_text( GTK_ENTRY( CEDXR3Device ),gtkDXR3Device ); |
1729 | 1729 |
1730 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVNone ),TRUE ); | 1730 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVNone ),TRUE ); |
1731 if ( gtkVfLAVC ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVLavc ),TRUE ); | 1731 if ( gtkVfLAVC ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVLavc ),TRUE ); |
1753 HideDXR3Config(); | 1753 HideDXR3Config(); |
1754 break; | 1754 break; |
1755 } | 1755 } |
1756 } | 1756 } |
1757 | 1757 |
1758 GtkWidget * create_DXR3Config( void ) | 1758 GtkWidget * CreateDXR3Config( void ) |
1759 { | 1759 { |
1760 GtkWidget * vbox1; | 1760 GtkWidget * vbox1; |
1761 GtkWidget * vbox2; | 1761 GtkWidget * vbox2; |
1762 GtkWidget * hbox1; | 1762 GtkWidget * hbox1; |
1763 GList * CBDevice_items = NULL; | 1763 GList * CBDevice_items = NULL; |