annotate gui/dialog/equalizer.c @ 35998:05f75ac2dd8b

Make HideEquConfig() static. It only has file scope. In order to do so, relocate the functions. Additionally, remove unnecessary declaration.
author ib
date Fri, 29 Mar 2013 14:09:40 +0000
parents 6c891a0e3fea
children 6fc16dfa49d6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
1 /*
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
2 * This file is part of MPlayer.
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
3 *
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
7 * (at your option) any later version.
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
8 *
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
12 * GNU General Public License for more details.
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
13 *
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License along
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
17 */
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
18
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
19 #include <stdlib.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
20 #include <stdio.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
21 #include <sys/types.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
22 #include <sys/stat.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
23 #include <unistd.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
24 #include <string.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
25
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
26 #include <gdk/gdkkeysyms.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
27 #include <gtk/gtk.h>
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
28
35525
e27855a45128 Rebuild GUI directory structure.
ib
parents: 35450
diff changeset
29 #include "gui/app/app.h"
e27855a45128 Rebuild GUI directory structure.
ib
parents: 35450
diff changeset
30 #include "gui/app/cfg.h"
33738
998f94e62a61 Remove unnecessary #include "gui/interface.h".
ib
parents: 33737
diff changeset
31 #include "gui/interface.h"
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
32 #include "help_mp.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
33 #include "libaf/equalizer.h"
33689
8d0290220239 Replace numeric constants for gtkEquChannels array size.
ib
parents: 33646
diff changeset
34 #include "libavutil/common.h"
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
35 #include "libvo/video_out.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
36 #include "stream/stream.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
37 #include "libmpdemux/demuxer.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
38 #include "libmpdemux/stheader.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
39 #include "libmpcodecs/dec_video.h"
35529
8ad4d2fb46e8 Rebuild GUI directory structure.
ib
parents: 35526
diff changeset
40 #include "dialog.h"
33739
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
41 #include "gui/util/mem.h"
33737
71c29e8ec68f Move string functions from interface.c to string.c.
ib
parents: 33689
diff changeset
42 #include "gui/util/string.h"
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
43
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
44 #include "equalizer.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
45 #include "tools.h"
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
46
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
47 #define eqRange 15
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
48
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
49 GtkWidget * Equalizer = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
50 static GtkWidget * EquConfig;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
51
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
52 static GtkWidget * Notebook;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
53 static GtkWidget * ChannelsList;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
54 static GtkWidget * VContrast, * VBrightness, * VHue, * VSaturation;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
55 static GtkAdjustment * VContrastadj, * VBrightnessadj, * VHueadj, * VSaturationadj;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
56 static GtkWidget * Ok, * Clear, * Config;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
57 static GtkWidget * A3125, * A125, * A6250, * A250, * A500, * A1000, * A2000, * A4000, * A8000, * A16000;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
58 static GtkAdjustment * A3125adj, * A125adj, * A6250adj, * A250adj, * A500adj, * A1000adj, * A2000adj, * A4000adj, * A8000adj, * A16000adj;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
59
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
60 static int Channel = -1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
61
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
62 // ---
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
63
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
64 char * gtkEquChannel1 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
65 char * gtkEquChannel2 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
66 char * gtkEquChannel3 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
67 char * gtkEquChannel4 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
68 char * gtkEquChannel5 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
69 char * gtkEquChannel6 = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
70
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
71 // ---
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
72
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
73 void ShowEquConfig( void );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
74
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
75 static void eqSetBands( int channel )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
76 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
77 if ( channel < 0 ) channel=0;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
78 gtk_adjustment_set_value( A3125adj,0.0f - gtkEquChannels[channel][0] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
79 gtk_adjustment_set_value( A6250adj,0.0f - gtkEquChannels[channel][1] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
80 gtk_adjustment_set_value( A125adj,0.0f - gtkEquChannels[channel][2] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
81 gtk_adjustment_set_value( A250adj,0.0f - gtkEquChannels[channel][3] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
82 gtk_adjustment_set_value( A500adj,0.0f - gtkEquChannels[channel][4] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
83 gtk_adjustment_set_value( A1000adj,0.0f - gtkEquChannels[channel][5] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
84 gtk_adjustment_set_value( A2000adj,0.0f - gtkEquChannels[channel][6] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
85 gtk_adjustment_set_value( A4000adj,0.0f - gtkEquChannels[channel][7] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
86 gtk_adjustment_set_value( A8000adj,0.0f - gtkEquChannels[channel][8] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
87 gtk_adjustment_set_value( A16000adj,0.0f - gtkEquChannels[channel][9] );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
88
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
89 if ( guiInfo.sh_video )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
90 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
91 get_video_colors( guiInfo.sh_video,"brightness",&vo_gamma_brightness );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
92 get_video_colors( guiInfo.sh_video,"contrast",&vo_gamma_contrast );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
93 get_video_colors( guiInfo.sh_video,"hue",&vo_gamma_hue );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
94 get_video_colors( guiInfo.sh_video,"saturation",&vo_gamma_saturation );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
95 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
96
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
97 gtk_adjustment_set_value( VContrastadj,(float)vo_gamma_contrast );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
98 gtk_adjustment_set_value( VBrightnessadj,(float)vo_gamma_brightness );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
99 gtk_adjustment_set_value( VHueadj,(float)vo_gamma_hue );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
100 gtk_adjustment_set_value( VSaturationadj,(float)vo_gamma_saturation );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
101 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
102
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
103 static void eqSetChannelNames( void )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
104 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
105 gchar * str[2];
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
106 gtk_clist_clear( GTK_CLIST( ChannelsList ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
107 str[1]="";
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
108 str[0]=MSGTR_EQU_All;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
109 gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
33646
f3300b0c38a9 Rename guiInterface_t member AudioType AudioChannels.
ib
parents: 33572
diff changeset
110 if ( guiInfo.AudioChannels > 1 )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
111 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
112 str[0]=gtkEquChannel1; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
113 str[0]=gtkEquChannel2; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
114 }
33646
f3300b0c38a9 Rename guiInterface_t member AudioType AudioChannels.
ib
parents: 33572
diff changeset
115 if ( guiInfo.AudioChannels > 2 )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
116 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
117 str[0]=gtkEquChannel3; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
118 str[0]=gtkEquChannel4; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
119 }
33646
f3300b0c38a9 Rename guiInterface_t member AudioType AudioChannels.
ib
parents: 33572
diff changeset
120 if ( guiInfo.AudioChannels > 4 )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
121 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
122 str[0]=gtkEquChannel5; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
123 str[0]=gtkEquChannel6; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
124 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
125 gtk_clist_select_row( GTK_CLIST( ChannelsList ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
126 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
127
35998
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
128 static void HideEquConfig( void )
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
129 {
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
130 if ( !EquConfig ) return;
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
131 gtk_widget_hide( EquConfig );
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
132 gtk_widget_destroy( EquConfig );
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
133 EquConfig=NULL;
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
134 }
05f75ac2dd8b Make HideEquConfig() static.
ib
parents: 35996
diff changeset
135
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
136 static void HideEqualizer( void )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
137 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
138 if ( !Equalizer ) return;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
139 gtk_widget_hide( Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
140 gtk_widget_destroy( Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
141 Equalizer=NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
142 if ( EquConfig ) HideEquConfig();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
143 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
144
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
145 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
146 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
147 equalizer_t eq;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
148 switch ( (int)user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
149 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
150 case 0: eq.gain=A3125adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
151 case 1: eq.gain=A6250adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
152 case 2: eq.gain=A125adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
153 case 3: eq.gain=A250adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
154 case 4: eq.gain=A500adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
155 case 5: eq.gain=A1000adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
156 case 6: eq.gain=A2000adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
157 case 7: eq.gain=A4000adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
158 case 8: eq.gain=A8000adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
159 case 9: eq.gain=A16000adj->value; break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
160 default: return FALSE;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
161 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
162 eq.gain=0.0f - eq.gain;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
163 eq.band=(int)user_data;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
164 if ( Channel == -1 )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
165 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
166 int i;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
167 for ( i=0;i<6;i++ )
33766
515a3b5f291e Rename the mplayer() symbolic constants.
ib
parents: 33756
diff changeset
168 { eq.channel=i; mplayer( MPLAYER_SET_EQUALIZER,0,&eq ); }
515a3b5f291e Rename the mplayer() symbolic constants.
ib
parents: 33756
diff changeset
169 } else { eq.channel=Channel; mplayer( MPLAYER_SET_EQUALIZER,0,&eq ); }
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
170
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
171 return FALSE;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
172 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
173
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
174 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
175 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
176
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
177 switch( (int)user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
178 {
33769
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
179 case 1: mplayer( MPLAYER_SET_CONTRAST,VContrastadj->value,0 ); break;
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
180 case 2: mplayer( MPLAYER_SET_BRIGHTNESS,VBrightnessadj->value,0 ); break;
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
181 case 3: mplayer( MPLAYER_SET_HUE,VHueadj->value,0 ); break;
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
182 case 4: mplayer( MPLAYER_SET_SATURATION,VSaturationadj->value,0 ); break;
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
183 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
184
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
185 return FALSE;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
186 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
187
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
188 static void eqButtonReleased( GtkButton * button,gpointer user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
189 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
190 switch( (int)user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
191 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
192 case 0: HideEqualizer(); break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
193 case 1:
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
194 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
195 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
196 if ( !guiInfo.Playing || !gtkEnableAudioEqualizer ) break;
33766
515a3b5f291e Rename the mplayer() symbolic constants.
ib
parents: 33756
diff changeset
197 mplayer( MPLAYER_SET_EQUALIZER,0,NULL );
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
198 eqSetBands( Channel );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
199 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
200 else
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
201 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
202 if ( !guiInfo.Playing ) break;
33769
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
203 mplayer( MPLAYER_SET_CONTRAST,0,0 );
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
204 mplayer( MPLAYER_SET_BRIGHTNESS,0,0 );
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
205 mplayer( MPLAYER_SET_HUE,0,0 );
fd05ddb85f03 Cosmetic: Change parameter of mplayer() calls.
ib
parents: 33766
diff changeset
206 mplayer( MPLAYER_SET_SATURATION,0,0 );
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
207 eqSetBands( Channel );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
208 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
209 break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
210 case 2:
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
211 ShowEquConfig();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
212 break;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
213 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
214 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
215
34466
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
216 static gboolean eqFocus( GtkWidget * widget,GdkEvent * event,gpointer user_data )
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
217 {
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
218 eqSetBands( Channel );
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
219 return FALSE;
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
220 }
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
221
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
222 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
223 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
224 Channel=row - 1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
225 eqSetBands( Channel );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
226 if ( Channel == -1 )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
227 {
33756
e55098a29bcb Use unsigned index variable for comparison with array size.
ib
parents: 33743
diff changeset
228 unsigned int i,j; equalizer_t eq;
33689
8d0290220239 Replace numeric constants for gtkEquChannels array size.
ib
parents: 33646
diff changeset
229 for ( i=1;i<FF_ARRAY_ELEMS(gtkEquChannels);i++ )
8d0290220239 Replace numeric constants for gtkEquChannels array size.
ib
parents: 33646
diff changeset
230 for ( j=0;j<FF_ARRAY_ELEMS(*gtkEquChannels);j++ )
33766
515a3b5f291e Rename the mplayer() symbolic constants.
ib
parents: 33756
diff changeset
231 { eq.band=j; eq.channel=i; eq.gain=gtkEquChannels[0][j]; mplayer( MPLAYER_SET_EQUALIZER,0,&eq ); }
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
232 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
233 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
234
34466
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
235 static void eqNotebook( GtkNotebook * notebook, gpointer page,
a650895d50a5 Use correct data types and common variable names in GTK callback functions.
ib
parents: 33769
diff changeset
236 guint page_num, gpointer user_data )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
237 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
238 if ( page_num ) gtk_widget_hide( Config );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
239 else gtk_widget_show( Config );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
240 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
241
35996
6c891a0e3fea Cosmetic: Rename the functions creating the dialogs.
ib
parents: 35990
diff changeset
242 static GtkWidget * CreateEqualizer( void )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
243 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
244 GtkWidget * vbox1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
245 GtkWidget * hbox1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
246 GtkWidget * scrolledwindow1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
247 GtkWidget * table1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
248 GtkWidget * hbuttonbox1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
249 GtkAccelGroup * accel_group;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
250
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
251 accel_group=gtk_accel_group_new();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
252
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
253 Equalizer=gtk_window_new( GTK_WINDOW_TOPLEVEL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
254 gtk_widget_set_name( Equalizer,MSGTR_Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
255 gtk_object_set_data( GTK_OBJECT( Equalizer ),MSGTR_Equalizer,Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
256 gtk_widget_set_usize( Equalizer,-1,256 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
257 gtk_window_set_title( GTK_WINDOW( Equalizer ),MSGTR_Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
258 gtk_window_set_position( GTK_WINDOW( Equalizer ),GTK_WIN_POS_CENTER );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
259 gtk_window_set_policy( GTK_WINDOW( Equalizer ),FALSE,FALSE,FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
260 gtk_window_set_wmclass( GTK_WINDOW( Equalizer ),"Equalizer","MPlayer" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
261
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
262 gtk_widget_realize( Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
263 gtkAddIcon( Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
264
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
265 vbox1=AddVBox( AddDialogFrame( Equalizer ),0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
266
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
267 Notebook=gtk_notebook_new();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
268 gtk_widget_set_name( Notebook,"Notebook" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
269 gtk_widget_show( Notebook );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
270 gtk_box_pack_start( GTK_BOX( vbox1 ),Notebook,TRUE,TRUE,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
271 gtk_container_set_border_width( GTK_CONTAINER( Notebook ),1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
272
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
273 hbox1=AddHBox( Notebook,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
274
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
275 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
276 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
277 gtk_widget_show( scrolledwindow1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
278 gtk_box_pack_start( GTK_BOX( hbox1 ),scrolledwindow1,FALSE,FALSE,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
279 gtk_widget_set_usize( scrolledwindow1,106,-2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
280 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
281
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
282 ChannelsList=gtk_clist_new( 1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
283 gtk_widget_set_name( ChannelsList,"ChannelsList" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
284 gtk_widget_show( ChannelsList );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
285 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),ChannelsList );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
286 gtk_clist_set_column_width( GTK_CLIST( ChannelsList ),0,80 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
287 gtk_clist_column_titles_hide( GTK_CLIST( ChannelsList ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
288
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
289 table1=gtk_table_new( 2,10,FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
290 gtk_widget_set_name( table1,"table1" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
291 gtk_widget_show( table1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
292 gtk_box_pack_start( GTK_BOX( hbox1 ),table1,FALSE,FALSE,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
293 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
294 gtk_table_set_col_spacings( GTK_TABLE( table1 ),9 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
295
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
296 A3125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
297 A3125=AddVScaler( A3125adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
298 gtk_table_attach( GTK_TABLE( table1 ),A3125,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
299
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
300 A6250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
301 A6250=AddVScaler( A6250adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
302 gtk_table_attach( GTK_TABLE( table1 ),A6250,1,2,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
303
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
304 A125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
305 A125=AddVScaler( A125adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
306 gtk_table_attach( GTK_TABLE( table1 ),A125,2,3,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
307
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
308 A250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
309 A250=AddVScaler( A250adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
310 gtk_table_attach( GTK_TABLE( table1 ),A250,3,4,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
311
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
312 A500adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
313 A500=AddVScaler( A500adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
314 gtk_table_attach( GTK_TABLE( table1 ),A500,4,5,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
315
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
316 A1000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
317 A1000=AddVScaler( A1000adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
318 gtk_table_attach( GTK_TABLE( table1 ),A1000,5,6,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
319
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
320 A2000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
321 A2000=AddVScaler( A2000adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
322 gtk_table_attach( GTK_TABLE( table1 ),A2000,6,7,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
323
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
324 A4000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
325 A4000=AddVScaler( A4000adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
326 gtk_table_attach( GTK_TABLE( table1 ),A4000,7,8,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
327
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
328 A8000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
329 A8000=AddVScaler( A8000adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
330 gtk_table_attach( GTK_TABLE( table1 ),A8000,8,9,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
331
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
332 A16000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
333 A16000=AddVScaler( A16000adj,NULL,-1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
334 gtk_table_attach( GTK_TABLE( table1 ),A16000,9,10,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
335
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
336 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
337 AddLabel( "31.25",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
338 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
339
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
340 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
341 AddLabel( "62.50",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
342 1,2,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
343
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
344 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
345 AddLabel( "125",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
346 2,3,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
347
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
348 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
349 AddLabel( "250",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
350 3,4,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
351
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
352 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
353 AddLabel( "500",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
354 4,5,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
355
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
356 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
357 AddLabel( "1000",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
358 5,6,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
359
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
360 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
361 AddLabel( "2000",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
362 6,7,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
363
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
364 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
365 AddLabel( "4000",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
366 7,8,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
367
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
368 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
369 AddLabel( "8000",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
370 8,9,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
371
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
372 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
373 AddLabel( "16000",NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
374 9,10,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
375
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
376 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),0 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
377 AddLabel( MSGTR_EQU_Audio,NULL ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
378
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
379 table1=gtk_table_new( 4,2,FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
380 gtk_widget_set_name( table1,"table1" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
381 gtk_widget_show( table1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
382 gtk_container_add( GTK_CONTAINER( Notebook ),table1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
383
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
384 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
385 AddLabel( MSGTR_EQU_Contrast,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
386 0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
387
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
388 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
389 AddLabel( MSGTR_EQU_Brightness,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
390 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
391
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
392 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
393 AddLabel( MSGTR_EQU_Hue,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
394 0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
395
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
396 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
397 AddLabel( MSGTR_EQU_Saturation,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
398 0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
399
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
400 VContrastadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
401 VContrast=AddHScaler( VContrastadj,NULL,1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
402 gtk_table_attach( GTK_TABLE( table1 ),VContrast,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
403 gtk_widget_set_usize( VContrast,-1,45 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
404
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
405 VBrightnessadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
406 VBrightness=AddHScaler( VBrightnessadj,NULL,1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
407 gtk_table_attach( GTK_TABLE( table1 ),VBrightness,1,2,1,2,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
408 gtk_widget_set_usize( VBrightness,-1,45 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
409
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
410 VHueadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
411 VHue=AddHScaler( VHueadj,NULL,1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
412 gtk_table_attach( GTK_TABLE( table1 ),VHue,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
413 gtk_widget_set_usize( VHue,-1,45 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
414
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
415 VSaturationadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
416 VSaturation=AddHScaler( VSaturationadj,NULL,1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
417 gtk_table_attach( GTK_TABLE( table1 ),VSaturation,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
418 gtk_widget_set_usize( VSaturation,-1,45 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
419
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
420 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
421 AddLabel( MSGTR_EQU_Video,NULL ) );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
422
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
423 AddHSeparator( vbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
424
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
425 hbuttonbox1=AddHButtonBox( vbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
426 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
427 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
428
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
429 Config=AddButton( MSGTR_Config,hbuttonbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
430 Clear=AddButton( MSGTR_Clear,hbuttonbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
431 Ok=AddButton( MSGTR_Ok,hbuttonbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
432
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
433 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
434 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
435
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
436 gtk_signal_connect( GTK_OBJECT( Equalizer ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&Equalizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
437 gtk_signal_connect( GTK_OBJECT( Equalizer ),"focus_in_event",GTK_SIGNAL_FUNC( eqFocus ),(void *)2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
438
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
439 gtk_signal_connect( GTK_OBJECT( ChannelsList ),"select_row",GTK_SIGNAL_FUNC( eqSelectChannelsListRow ),NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
440
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
441 gtk_signal_connect( GTK_OBJECT( A3125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
442 gtk_signal_connect( GTK_OBJECT( A6250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
443 gtk_signal_connect( GTK_OBJECT( A125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
444 gtk_signal_connect( GTK_OBJECT( A250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)3 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
445 gtk_signal_connect( GTK_OBJECT( A500 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
446 gtk_signal_connect( GTK_OBJECT( A1000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)5 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
447 gtk_signal_connect( GTK_OBJECT( A2000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)6 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
448 gtk_signal_connect( GTK_OBJECT( A4000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)7 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
449 gtk_signal_connect( GTK_OBJECT( A8000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)8 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
450 gtk_signal_connect( GTK_OBJECT( A16000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)9 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
451
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
452 gtk_signal_connect( GTK_OBJECT( VContrast ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
453 gtk_signal_connect( GTK_OBJECT( VBrightness ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
454 gtk_signal_connect( GTK_OBJECT( VHue ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)3 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
455 gtk_signal_connect( GTK_OBJECT( VSaturation ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void *)4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
456
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
457 gtk_signal_connect( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
458 gtk_signal_connect( GTK_OBJECT( Clear ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
459 gtk_signal_connect( GTK_OBJECT( Config ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
460
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
461 gtk_signal_connect( GTK_OBJECT( Notebook ),"switch_page",GTK_SIGNAL_FUNC( eqNotebook ),NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
462
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
463 gtk_window_add_accel_group( GTK_WINDOW( Equalizer ),accel_group );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
464
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
465 return Equalizer;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
466 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
467
35990
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
468 void ShowEqualizer( void )
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
469 {
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
470 if ( Equalizer ) gtkActive( Equalizer );
35996
6c891a0e3fea Cosmetic: Rename the functions creating the dialogs.
ib
parents: 35990
diff changeset
471 else Equalizer=CreateEqualizer();
35990
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
472
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
473 if ( !gtkEquChannel1 ) gtkEquChannel1=strdup( MSGTR_EQU_Front_Right );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
474 if ( !gtkEquChannel2 ) gtkEquChannel2=strdup( MSGTR_EQU_Front_Left );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
475 if ( !gtkEquChannel3 ) gtkEquChannel3=strdup( MSGTR_EQU_Back_Right );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
476 if ( !gtkEquChannel4 ) gtkEquChannel4=strdup( MSGTR_EQU_Back_Left );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
477 if ( !gtkEquChannel5 ) gtkEquChannel5=strdup( MSGTR_EQU_Center );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
478 if ( !gtkEquChannel6 ) gtkEquChannel6=strdup( MSGTR_EQU_Bass );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
479
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
480 eqSetChannelNames();
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
481
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
482 if ( !guiInfo.Playing || !guiInfo.sh_video )
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
483 {
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
484 gtk_widget_set_sensitive( VContrast,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
485 gtk_widget_set_sensitive( VBrightness,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
486 gtk_widget_set_sensitive( VHue,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
487 gtk_widget_set_sensitive( VSaturation,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
488 }
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
489 Channel=-1;
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
490 eqSetBands( 0 );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
491 if ( !guiInfo.Playing || !gtkEnableAudioEqualizer )
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
492 {
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
493 gtk_widget_set_sensitive( ChannelsList,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
494 gtk_widget_set_sensitive( A3125,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
495 gtk_widget_set_sensitive( A125,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
496 gtk_widget_set_sensitive( A6250,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
497 gtk_widget_set_sensitive( A250,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
498 gtk_widget_set_sensitive( A500,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
499 gtk_widget_set_sensitive( A1000,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
500 gtk_widget_set_sensitive( A2000,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
501 gtk_widget_set_sensitive( A4000,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
502 gtk_widget_set_sensitive( A8000,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
503 gtk_widget_set_sensitive( A16000,FALSE );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
504 }
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
505
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
506 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 ) gtk_widget_show( Config );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
507 gtk_widget_show( Equalizer );
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
508 }
249207676edf Make create_Equalizer() static.
ib
parents: 35529
diff changeset
509
34684
b03481253518 Cosmetic: Prefer C style for single line comments.
ib
parents: 34466
diff changeset
510 /* equalizer config dialog box */
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
511
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
512 static GtkWidget * CBChannel1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
513 static GtkWidget * CEChannel1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
514 static GtkWidget * CBChannel2;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
515 static GtkWidget * CEChannel2;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
516 static GtkWidget * CBChannel3;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
517 static GtkWidget * CEChannel3;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
518 static GtkWidget * CBChannel4;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
519 static GtkWidget * CEChannel4;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
520 static GtkWidget * CBChannel5;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
521 static GtkWidget * CEChannel5;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
522 static GtkWidget * CBChannel6;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
523 static GtkWidget * CEChannel6;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
524 static GtkWidget * ecOk;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
525 static GtkWidget * ecCancel;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
526
35996
6c891a0e3fea Cosmetic: Rename the functions creating the dialogs.
ib
parents: 35990
diff changeset
527 GtkWidget * CreateEquConfig( void );
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
528
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
529 void ShowEquConfig( void )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
530 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
531 GList * Items = NULL;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
532
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
533 if ( EquConfig ) gtkActive( EquConfig );
35996
6c891a0e3fea Cosmetic: Rename the functions creating the dialogs.
ib
parents: 35990
diff changeset
534 else EquConfig=CreateEquConfig();
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
535
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
536 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Right );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
537 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Left );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
538 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Right );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
539 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Left );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
540 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Center );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
541 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Bass );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
542
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
543 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel1 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
544 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel2 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
545 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel3 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
546 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel4 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
547 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel5 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
548 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel6 ),Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
549
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
550 g_list_free( Items );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
551
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
552 gtk_entry_set_text( GTK_ENTRY( CEChannel1 ),gtkEquChannel1 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel1 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
553 gtk_entry_set_text( GTK_ENTRY( CEChannel2 ),gtkEquChannel2 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel2 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
554 gtk_entry_set_text( GTK_ENTRY( CEChannel3 ),gtkEquChannel3 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel3 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
555 gtk_entry_set_text( GTK_ENTRY( CEChannel4 ),gtkEquChannel4 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel4 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
556 gtk_entry_set_text( GTK_ENTRY( CEChannel5 ),gtkEquChannel5 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel5 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
557 gtk_entry_set_text( GTK_ENTRY( CEChannel6 ),gtkEquChannel6 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel6 ),FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
558
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
559 gtk_widget_show( EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
560 gtkSetLayer( EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
561 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
562
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
563 static void ecButtonReleased( GtkButton * button,gpointer user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
564 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
565 if ( (int)user_data )
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
566 { // if you pressed Ok
33739
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
567 nfree( gtkEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) );
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
568 nfree( gtkEquChannel2 ); gtkEquChannel2=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel2 ) ) );
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
569 nfree( gtkEquChannel3 ); gtkEquChannel3=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel3 ) ) );
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
570 nfree( gtkEquChannel4 ); gtkEquChannel4=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel4 ) ) );
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
571 nfree( gtkEquChannel5 ); gtkEquChannel5=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel5 ) ) );
9f6d46d325de Remove gfree() from interface.c.
ib
parents: 33738
diff changeset
572 nfree( gtkEquChannel6 ); gtkEquChannel6=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel6 ) ) );
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
573 eqSetChannelNames();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
574 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
575 HideEquConfig();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
576 }
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
577
35996
6c891a0e3fea Cosmetic: Rename the functions creating the dialogs.
ib
parents: 35990
diff changeset
578 GtkWidget * CreateEquConfig( void )
33572
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
579 {
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
580 GtkWidget * vbox1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
581 GtkWidget * table1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
582 GtkWidget * hbuttonbox1;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
583 GtkAccelGroup * accel_group;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
584
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
585 accel_group=gtk_accel_group_new();
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
586
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
587 EquConfig=gtk_window_new( GTK_WINDOW_TOPLEVEL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
588 gtk_widget_set_name( EquConfig,"EquConfig" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
589 gtk_object_set_data( GTK_OBJECT( EquConfig ),"EquConfig",EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
590 gtk_widget_set_usize( EquConfig,350,260 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
591 GTK_WIDGET_SET_FLAGS( EquConfig,GTK_CAN_DEFAULT );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
592 gtk_window_set_title( GTK_WINDOW( EquConfig ),MSGTR_ConfigureEqualizer );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
593 gtk_window_set_position( GTK_WINDOW( EquConfig ),GTK_WIN_POS_CENTER );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
594 // gtk_window_set_modal( GTK_WINDOW( EquConfig ),TRUE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
595 gtk_window_set_policy( GTK_WINDOW( EquConfig ),FALSE,FALSE,FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
596 gtk_window_set_wmclass( GTK_WINDOW( EquConfig ),"EquConfig","MPlayer" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
597
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
598 gtk_widget_realize( EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
599 gtkAddIcon( EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
600
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
601 vbox1=AddVBox( AddDialogFrame( EquConfig ),0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
602
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
603 table1=gtk_table_new( 6,2,FALSE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
604 gtk_widget_set_name( table1,"table1" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
605 gtk_widget_show( table1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
606 gtk_box_pack_start( GTK_BOX( vbox1 ),table1,TRUE,TRUE,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
607 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
608 gtk_table_set_col_spacings( GTK_TABLE( table1 ),4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
609
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
610 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
611 AddLabel( MSGTR_EQU_Channel1,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
612 0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
613
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
614 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
615 AddLabel( MSGTR_EQU_Channel2,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
616 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
617
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
618 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
619 AddLabel( MSGTR_EQU_Channel3,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
620 0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
621
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
622 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
623 AddLabel( MSGTR_EQU_Channel4,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
624 0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
625
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
626 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
627 AddLabel( MSGTR_EQU_Channel5,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
628 0,1,4,5,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
629
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
630 gtk_table_attach( GTK_TABLE( table1 ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
631 AddLabel( MSGTR_EQU_Channel6,NULL ),
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
632 0,1,5,6,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
633
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
634 CBChannel1=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
635 gtk_table_attach( GTK_TABLE( table1 ),CBChannel1,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
636
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
637 CEChannel1=GTK_COMBO( CBChannel1 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
638 gtk_widget_set_name( CEChannel1,"CEChannel1" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
639 gtk_widget_show( CEChannel1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
640
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
641 CBChannel2=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
642 gtk_table_attach( GTK_TABLE( table1 ),CBChannel2,1,2,1,2,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
643
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
644 CEChannel2=GTK_COMBO( CBChannel2 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
645 gtk_widget_set_name( CEChannel2,"CEChannel2" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
646 gtk_widget_show( CEChannel2 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
647
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
648 CBChannel3=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
649 gtk_table_attach( GTK_TABLE( table1 ),CBChannel3,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
650
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
651 CEChannel3=GTK_COMBO( CBChannel3 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
652 gtk_widget_set_name( CEChannel3,"CEChannel3" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
653 gtk_widget_show( CEChannel3 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
654
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
655 CBChannel4=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
656 gtk_table_attach( GTK_TABLE( table1 ),CBChannel4,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
657
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
658 CEChannel4=GTK_COMBO( CBChannel4 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
659 gtk_widget_set_name( CEChannel4,"CEChannel4" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
660 gtk_widget_show( CEChannel4 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
661
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
662 CBChannel5=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
663 gtk_table_attach( GTK_TABLE( table1 ),CBChannel5,1,2,4,5,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
664
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
665 CEChannel5=GTK_COMBO( CBChannel5 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
666 gtk_widget_set_name( CEChannel5,"CEChannel5" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
667 gtk_widget_show( CEChannel5 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
668
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
669 CBChannel6=AddComboBox( NULL );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
670 gtk_table_attach( GTK_TABLE( table1 ),CBChannel6,1,2,5,6,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
671
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
672 CEChannel6=GTK_COMBO( CBChannel6 )->entry;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
673 gtk_widget_set_name( CEChannel6,"CEChannel6" );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
674 gtk_widget_show( CEChannel6 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
675
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
676 AddHSeparator( vbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
677
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
678 hbuttonbox1=AddHButtonBox( vbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
679 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
680 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
681
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
682 ecOk=AddButton( MSGTR_Ok,hbuttonbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
683 ecCancel=AddButton( MSGTR_Cancel,hbuttonbox1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
684
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
685 gtk_widget_add_accelerator( ecOk,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
686 gtk_widget_add_accelerator( ecCancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
687
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
688 gtk_signal_connect( GTK_OBJECT( EquConfig ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&EquConfig );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
689
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
690 gtk_signal_connect( GTK_OBJECT( ecOk ),"clicked",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)1 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
691 gtk_signal_connect( GTK_OBJECT( ecCancel ),"clicked",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)0 );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
692
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
693 gtk_window_add_accel_group( GTK_WINDOW( EquConfig ),accel_group );
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
694
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
695 return EquConfig;
d9b805602aa1 Rename some gtk files.
ib
parents:
diff changeset
696 }