Mercurial > mplayer.hg
annotate Gui/mplayer/gtk/eq.c @ 9208:592f48c5b14f
better language support
author | pontscho |
---|---|
date | Sat, 01 Feb 2003 18:41:50 +0000 |
parents | dc27303ae528 |
children | db75b76c11b2 |
rev | line source |
---|---|
6626 | 1 |
2 #include <stdlib.h> | |
3 #include <stdio.h> | |
4 #include <sys/types.h> | |
5 #include <sys/stat.h> | |
6 #include <unistd.h> | |
7 #include <string.h> | |
8 | |
9 #include <gdk/gdkkeysyms.h> | |
10 #include <gtk/gtk.h> | |
11 | |
8043 | 12 #include "../../app.h" |
6794 | 13 #include "../../cfg.h" |
6651 | 14 #include "../../help_mp.h" |
6627 | 15 #include "../../../config.h" |
16 #include "../../../help_mp.h" | |
17 #include "../../../mplayer.h" | |
18 #include "../../../libao2/eq.h" | |
6755 | 19 #include "../../../libvo/video_out.h" |
6627 | 20 #include "../widgets.h" |
21 #include "../mplayer.h" | |
22 | |
6626 | 23 #include "eq.h" |
8299 | 24 #include "common.h" |
6626 | 25 |
6840 | 26 #define eqRange 15 |
6794 | 27 |
8299 | 28 GtkWidget * Equalizer = NULL; |
29 static GtkWidget * EquConfig; | |
6627 | 30 |
31 static GtkWidget * Notebook; | |
6626 | 32 static GtkWidget * ChannelsList; |
33 static GtkWidget * VContrast, * VBrightness, * VHue, * VSaturation; | |
34 static GtkAdjustment * VContrastadj, * VBrightnessadj, * VHueadj, * VSaturationadj; | |
6651 | 35 static GtkWidget * Ok, * Clear, * Config; |
6626 | 36 static GtkWidget * A3125, * A125, * A6250, * A250, * A500, * A1000, * A2000, * A4000, * A8000, * A16000; |
37 static GtkAdjustment * A3125adj, * A125adj, * A6250adj, * A250adj, * A500adj, * A1000adj, * A2000adj, * A4000adj, * A8000adj, * A16000adj; | |
38 | |
39 static int Channel = -1; | |
6651 | 40 |
41 // --- | |
6627 | 42 |
6651 | 43 char * gtkEquChannel1 = NULL; |
44 char * gtkEquChannel2 = NULL; | |
45 char * gtkEquChannel3 = NULL; | |
46 char * gtkEquChannel4 = NULL; | |
47 char * gtkEquChannel5 = NULL; | |
48 char * gtkEquChannel6 = NULL; | |
49 | |
50 // --- | |
51 | |
52 void ShowEquConfig( void ); | |
53 void HideEquConfig( void ); | |
54 | |
6627 | 55 static void eqSetBands( int channel ) |
56 { | |
57 if ( channel < 0 ) channel=0; | |
58 gtk_adjustment_set_value( A3125adj,0.0f - gtkEquChannels[channel][0] ); | |
59 gtk_adjustment_set_value( A6250adj,0.0f - gtkEquChannels[channel][1] ); | |
60 gtk_adjustment_set_value( A125adj,0.0f - gtkEquChannels[channel][2] ); | |
61 gtk_adjustment_set_value( A250adj,0.0f - gtkEquChannels[channel][3] ); | |
62 gtk_adjustment_set_value( A500adj,0.0f - gtkEquChannels[channel][4] ); | |
63 gtk_adjustment_set_value( A1000adj,0.0f - gtkEquChannels[channel][5] ); | |
64 gtk_adjustment_set_value( A2000adj,0.0f - gtkEquChannels[channel][6] ); | |
65 gtk_adjustment_set_value( A4000adj,0.0f - gtkEquChannels[channel][7] ); | |
66 gtk_adjustment_set_value( A8000adj,0.0f - gtkEquChannels[channel][8] ); | |
67 gtk_adjustment_set_value( A16000adj,0.0f - gtkEquChannels[channel][9] ); | |
6755 | 68 |
7217 | 69 if ( guiIntfStruct.sh_video ) |
70 { | |
71 get_video_colors( guiIntfStruct.sh_video,"brightness",&vo_gamma_brightness ); | |
72 get_video_colors( guiIntfStruct.sh_video,"contrast",&vo_gamma_contrast ); | |
73 get_video_colors( guiIntfStruct.sh_video,"hue",&vo_gamma_hue ); | |
74 get_video_colors( guiIntfStruct.sh_video,"saturation",&vo_gamma_saturation ); | |
75 } | |
76 | |
6755 | 77 gtk_adjustment_set_value( VContrastadj,(float)vo_gamma_contrast ); |
78 gtk_adjustment_set_value( VBrightnessadj,(float)vo_gamma_brightness ); | |
79 gtk_adjustment_set_value( VHueadj,(float)vo_gamma_hue ); | |
80 gtk_adjustment_set_value( VSaturationadj,(float)vo_gamma_saturation ); | |
6627 | 81 } |
82 | |
6651 | 83 static void eqSetChannelNames( void ) |
84 { | |
85 gchar * str[2]; | |
86 gtk_clist_clear( GTK_CLIST( ChannelsList ) ); | |
87 str[1]=""; | |
88 str[0]=MSGTR_EQU_All; | |
89 gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
90 if ( guiIntfStruct.AudioType > 1 ) | |
91 { | |
92 str[0]=gtkEquChannel1; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
93 str[0]=gtkEquChannel2; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
94 } | |
95 if ( guiIntfStruct.AudioType > 2 ) | |
96 { | |
97 str[0]=gtkEquChannel3; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
98 str[0]=gtkEquChannel4; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
99 } | |
100 if ( guiIntfStruct.AudioType > 4 ) | |
101 { | |
102 str[0]=gtkEquChannel5; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
103 str[0]=gtkEquChannel6; gtk_clist_append( GTK_CLIST( ChannelsList ) ,str); | |
104 } | |
6755 | 105 gtk_clist_select_row( GTK_CLIST( ChannelsList ),0,0 ); |
6651 | 106 } |
107 | |
6627 | 108 void ShowEqualizer( void ) |
109 { | |
8299 | 110 if ( Equalizer ) gtkActive( Equalizer ); |
6627 | 111 else Equalizer=create_Equalizer(); |
112 | |
6651 | 113 if ( !gtkEquChannel1 ) gtkEquChannel1=strdup( MSGTR_EQU_Front_Right ); |
114 if ( !gtkEquChannel2 ) gtkEquChannel2=strdup( MSGTR_EQU_Front_Left ); | |
115 if ( !gtkEquChannel3 ) gtkEquChannel3=strdup( MSGTR_EQU_Back_Right ); | |
116 if ( !gtkEquChannel4 ) gtkEquChannel4=strdup( MSGTR_EQU_Back_Left ); | |
117 if ( !gtkEquChannel5 ) gtkEquChannel5=strdup( MSGTR_EQU_Center ); | |
118 if ( !gtkEquChannel6 ) gtkEquChannel6=strdup( MSGTR_EQU_Bass ); | |
6627 | 119 |
6651 | 120 eqSetChannelNames(); |
121 | |
7217 | 122 if ( !guiIntfStruct.Playing || !guiIntfStruct.sh_video ) |
6651 | 123 { |
124 gtk_widget_set_sensitive( VContrast,FALSE ); | |
125 gtk_widget_set_sensitive( VBrightness,FALSE ); | |
126 gtk_widget_set_sensitive( VHue,FALSE ); | |
127 gtk_widget_set_sensitive( VSaturation,FALSE ); | |
128 } | |
6794 | 129 Channel=-1; |
6651 | 130 eqSetBands( 0 ); |
6794 | 131 if ( !guiIntfStruct.Playing || !gtkEnableAudioEqualizer ) |
6651 | 132 { |
133 gtk_widget_set_sensitive( ChannelsList,FALSE ); | |
134 gtk_widget_set_sensitive( A3125,FALSE ); | |
135 gtk_widget_set_sensitive( A125,FALSE ); | |
136 gtk_widget_set_sensitive( A6250,FALSE ); | |
137 gtk_widget_set_sensitive( A250,FALSE ); | |
138 gtk_widget_set_sensitive( A500,FALSE ); | |
139 gtk_widget_set_sensitive( A1000,FALSE ); | |
140 gtk_widget_set_sensitive( A2000,FALSE ); | |
141 gtk_widget_set_sensitive( A4000,FALSE ); | |
142 gtk_widget_set_sensitive( A8000,FALSE ); | |
143 gtk_widget_set_sensitive( A16000,FALSE ); | |
6627 | 144 } |
145 | |
6755 | 146 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 ) gtk_widget_show( Config ); |
6627 | 147 gtk_widget_show( Equalizer ); |
148 } | |
6626 | 149 |
150 void HideEqualizer( void ) | |
6651 | 151 { |
8299 | 152 if ( !Equalizer ) return; |
6651 | 153 gtk_widget_hide( Equalizer ); |
154 gtk_widget_destroy( Equalizer ); | |
8299 | 155 Equalizer=NULL; |
156 if ( EquConfig ) HideEquConfig(); | |
6651 | 157 } |
6626 | 158 |
6627 | 159 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) |
6626 | 160 { |
6627 | 161 equalizer_t eq; |
6626 | 162 switch ( (int)user_data ) |
163 { | |
6627 | 164 case 0: eq.gain=A3125adj->value; break; |
165 case 1: eq.gain=A6250adj->value; break; | |
166 case 2: eq.gain=A125adj->value; break; | |
167 case 3: eq.gain=A250adj->value; break; | |
168 case 4: eq.gain=A500adj->value; break; | |
169 case 5: eq.gain=A1000adj->value; break; | |
170 case 6: eq.gain=A2000adj->value; break; | |
171 case 7: eq.gain=A4000adj->value; break; | |
172 case 8: eq.gain=A8000adj->value; break; | |
173 case 9: eq.gain=A16000adj->value; break; | |
174 default: return FALSE; | |
6626 | 175 } |
6627 | 176 eq.gain=0.0f - eq.gain; |
177 eq.band=(int)user_data; | |
178 if ( Channel == -1 ) | |
179 { | |
180 int i; | |
181 for ( i=0;i<6;i++ ) | |
182 { eq.channel=i; gtkSet( gtkSetEqualizer,0,&eq ); } | |
183 } else { eq.channel=Channel; gtkSet( gtkSetEqualizer,0,&eq ); } | |
6626 | 184 |
6627 | 185 return FALSE; |
6626 | 186 } |
187 | |
6627 | 188 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) |
6626 | 189 { |
6627 | 190 |
191 switch( (int)user_data ) | |
6626 | 192 { |
6627 | 193 case 1: gtkSet( gtkSetContrast,VContrastadj->value,NULL ); break; |
194 case 2: gtkSet( gtkSetBrightness,VBrightnessadj->value,NULL ); break; | |
6755 | 195 case 3: gtkSet( gtkSetHue,VHueadj->value,NULL ); break; |
6627 | 196 case 4: gtkSet( gtkSetSaturation,VSaturationadj->value,NULL ); break; |
6626 | 197 } |
198 | |
6627 | 199 return FALSE; |
6626 | 200 } |
201 | |
6627 | 202 static void eqButtonReleased( GtkButton * button,gpointer user_data ) |
203 { | |
204 switch( (int)user_data ) | |
205 { | |
206 case 0: HideEqualizer(); break; | |
207 case 1: | |
6651 | 208 if ( gtk_notebook_get_current_page( GTK_NOTEBOOK( Notebook ) ) == 0 ) |
6627 | 209 { |
6794 | 210 if ( !guiIntfStruct.Playing || !gtkEnableAudioEqualizer ) break; |
6627 | 211 gtkSet( gtkSetEqualizer,0,NULL ); |
212 eqSetBands( Channel ); | |
213 } | |
214 else | |
215 { | |
6912 | 216 if ( !guiIntfStruct.Playing ) break; |
6627 | 217 gtkSet( gtkSetContrast,0.0f,NULL ); |
218 gtkSet( gtkSetBrightness,0.0f,NULL ); | |
219 gtkSet( gtkSetHue,0.0f,NULL ); | |
220 gtkSet( gtkSetSaturation,0.0f,NULL ); | |
6755 | 221 eqSetBands( Channel ); |
6627 | 222 } |
223 break; | |
6651 | 224 case 2: |
225 ShowEquConfig(); | |
226 break; | |
6627 | 227 } |
228 } | |
6626 | 229 |
7217 | 230 static void eqFocus( GtkWindow * window,GtkWidget * widget,gpointer user_data ) |
231 { eqSetBands( Channel ); } | |
232 | |
6627 | 233 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data ) |
6626 | 234 { |
235 Channel=row - 1; | |
6627 | 236 eqSetBands( Channel ); |
237 if ( Channel == -1 ) | |
238 { | |
239 int i,j; equalizer_t eq; | |
240 for ( i=1;i<6;i++ ) | |
241 for ( j=0;j<10;j++ ) | |
242 { eq.band=j; eq.channel=i; eq.gain=gtkEquChannels[0][j]; gtkSet( gtkSetEqualizer,0,&eq ); } | |
243 } | |
6626 | 244 } |
245 | |
6651 | 246 void eqNotebook( GtkNotebook * notebook,GtkNotebookPage * page,gint page_num,gpointer user_data ) |
247 { | |
248 if ( page_num ) gtk_widget_hide( Config ); | |
249 else gtk_widget_show( Config ); | |
250 } | |
251 | |
6626 | 252 GtkWidget * create_Equalizer( void ) |
253 { | |
254 GtkWidget * vbox1; | |
255 GtkWidget * hbox1; | |
256 GtkWidget * scrolledwindow1; | |
257 GtkWidget * table1; | |
258 GtkWidget * hbuttonbox1; | |
259 GtkAccelGroup * accel_group; | |
260 | |
261 accel_group=gtk_accel_group_new(); | |
262 | |
8043 | 263 Equalizer=gtk_window_new( GTK_WINDOW_TOPLEVEL ); |
6651 | 264 gtk_widget_set_name( Equalizer,MSGTR_Equalizer ); |
265 gtk_object_set_data( GTK_OBJECT( Equalizer ),MSGTR_Equalizer,Equalizer ); | |
8299 | 266 gtk_widget_set_usize( Equalizer,-1,256 ); |
6651 | 267 gtk_window_set_title( GTK_WINDOW( Equalizer ),MSGTR_Equalizer ); |
6626 | 268 gtk_window_set_position( GTK_WINDOW( Equalizer ),GTK_WIN_POS_CENTER ); |
269 gtk_window_set_policy( GTK_WINDOW( Equalizer ),FALSE,FALSE,FALSE ); | |
8299 | 270 gtk_window_set_wmclass( GTK_WINDOW( Equalizer ),"Equalizer","MPlayer" ); |
6626 | 271 |
6651 | 272 gtk_widget_realize( Equalizer ); |
273 gtkAddIcon( Equalizer ); | |
6626 | 274 |
8299 | 275 vbox1=AddVBox( AddDialogFrame( Equalizer ),0 ); |
6626 | 276 |
277 Notebook=gtk_notebook_new(); | |
278 gtk_widget_set_name( Notebook,"Notebook" ); | |
279 gtk_widget_show( Notebook ); | |
280 gtk_box_pack_start( GTK_BOX( vbox1 ),Notebook,TRUE,TRUE,0 ); | |
281 gtk_container_set_border_width( GTK_CONTAINER( Notebook ),1 ); | |
282 | |
8299 | 283 hbox1=AddHBox( Notebook,0 ); |
6626 | 284 |
285 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); | |
286 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); | |
287 gtk_widget_show( scrolledwindow1 ); | |
288 gtk_box_pack_start( GTK_BOX( hbox1 ),scrolledwindow1,FALSE,FALSE,0 ); | |
289 gtk_widget_set_usize( scrolledwindow1,106,-2 ); | |
290 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); | |
291 | |
292 ChannelsList=gtk_clist_new( 1 ); | |
293 gtk_widget_set_name( ChannelsList,"ChannelsList" ); | |
294 gtk_widget_show( ChannelsList ); | |
295 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),ChannelsList ); | |
296 gtk_clist_set_column_width( GTK_CLIST( ChannelsList ),0,80 ); | |
297 gtk_clist_column_titles_hide( GTK_CLIST( ChannelsList ) ); | |
298 | |
299 table1=gtk_table_new( 2,10,FALSE ); | |
300 gtk_widget_set_name( table1,"table1" ); | |
301 gtk_widget_show( table1 ); | |
302 gtk_box_pack_start( GTK_BOX( hbox1 ),table1,FALSE,FALSE,0 ); | |
303 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 ); | |
304 gtk_table_set_col_spacings( GTK_TABLE( table1 ),9 ); | |
305 | |
6794 | 306 A3125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 307 A3125=AddVScaler( A3125adj,NULL,-1 ); |
308 gtk_table_attach( GTK_TABLE( table1 ),A3125,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
309 | |
6794 | 310 A6250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 311 A6250=AddVScaler( A6250adj,NULL,-1 ); |
312 gtk_table_attach( GTK_TABLE( table1 ),A6250,1,2,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 313 |
6794 | 314 A125adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 315 A125=AddVScaler( A125adj,NULL,-1 ); |
316 gtk_table_attach( GTK_TABLE( table1 ),A125,2,3,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 317 |
6794 | 318 A250adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 319 A250=AddVScaler( A250adj,NULL,-1 ); |
320 gtk_table_attach( GTK_TABLE( table1 ),A250,3,4,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 321 |
6794 | 322 A500adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 323 A500=AddVScaler( A500adj,NULL,-1 ); |
324 gtk_table_attach( GTK_TABLE( table1 ),A500,4,5,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 325 |
6794 | 326 A1000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 327 A1000=AddVScaler( A1000adj,NULL,-1 ); |
328 gtk_table_attach( GTK_TABLE( table1 ),A1000,5,6,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 329 |
6794 | 330 A2000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 331 A2000=AddVScaler( A2000adj,NULL,-1 ); |
332 gtk_table_attach( GTK_TABLE( table1 ),A2000,6,7,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 333 |
6794 | 334 A4000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 335 A4000=AddVScaler( A4000adj,NULL,-1 ); |
336 gtk_table_attach( GTK_TABLE( table1 ),A4000,7,8,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 337 |
6794 | 338 A8000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 339 A8000=AddVScaler( A8000adj,NULL,-1 ); |
340 gtk_table_attach( GTK_TABLE( table1 ),A8000,8,9,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 341 |
6794 | 342 A16000adj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-eqRange,eqRange,0.5,0,0 ) ); |
8299 | 343 A16000=AddVScaler( A16000adj,NULL,-1 ); |
344 gtk_table_attach( GTK_TABLE( table1 ),A16000,9,10,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),0,0 ); | |
6626 | 345 |
8299 | 346 gtk_table_attach( GTK_TABLE( table1 ), |
347 AddLabel( "31.25",NULL ), | |
348 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 349 |
8299 | 350 gtk_table_attach( GTK_TABLE( table1 ), |
351 AddLabel( "62.50",NULL ), | |
352 1,2,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 353 |
8299 | 354 gtk_table_attach( GTK_TABLE( table1 ), |
355 AddLabel( "125",NULL ), | |
356 2,3,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 357 |
8299 | 358 gtk_table_attach( GTK_TABLE( table1 ), |
359 AddLabel( "250",NULL ), | |
360 3,4,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 361 |
8299 | 362 gtk_table_attach( GTK_TABLE( table1 ), |
363 AddLabel( "500",NULL ), | |
364 4,5,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 365 |
8299 | 366 gtk_table_attach( GTK_TABLE( table1 ), |
367 AddLabel( "1000",NULL ), | |
368 5,6,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 369 |
8299 | 370 gtk_table_attach( GTK_TABLE( table1 ), |
371 AddLabel( "2000",NULL ), | |
372 6,7,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 373 |
8299 | 374 gtk_table_attach( GTK_TABLE( table1 ), |
375 AddLabel( "4000",NULL ), | |
376 7,8,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 377 |
8299 | 378 gtk_table_attach( GTK_TABLE( table1 ), |
379 AddLabel( "8000",NULL ), | |
380 8,9,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 381 |
8299 | 382 gtk_table_attach( GTK_TABLE( table1 ), |
383 AddLabel( "16000",NULL ), | |
384 9,10,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 385 |
8299 | 386 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),0 ), |
387 AddLabel( MSGTR_EQU_Audio,NULL ) ); | |
6626 | 388 |
8299 | 389 table1=gtk_table_new( 4,2,FALSE ); |
390 gtk_widget_set_name( table1,"table1" ); | |
391 gtk_widget_show( table1 ); | |
392 gtk_container_add( GTK_CONTAINER( Notebook ),table1 ); | |
393 | |
394 gtk_table_attach( GTK_TABLE( table1 ), | |
395 AddLabel( MSGTR_EQU_Contrast,NULL ), | |
396 0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 397 |
8299 | 398 gtk_table_attach( GTK_TABLE( table1 ), |
399 AddLabel( MSGTR_EQU_Brightness,NULL ), | |
400 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 401 |
8299 | 402 gtk_table_attach( GTK_TABLE( table1 ), |
403 AddLabel( MSGTR_EQU_Hue,NULL ), | |
404 0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 405 |
8299 | 406 gtk_table_attach( GTK_TABLE( table1 ), |
407 AddLabel( MSGTR_EQU_Saturation,NULL ), | |
408 0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6626 | 409 |
6755 | 410 VContrastadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) ); |
8299 | 411 VContrast=AddHScaler( VContrastadj,NULL,1 ); |
412 gtk_table_attach( GTK_TABLE( table1 ),VContrast,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
413 gtk_widget_set_usize( VContrast,-1,45 ); | |
6626 | 414 |
6755 | 415 VBrightnessadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) ); |
8299 | 416 VBrightness=AddHScaler( VBrightnessadj,NULL,1 ); |
417 gtk_table_attach( GTK_TABLE( table1 ),VBrightness,1,2,1,2,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
418 gtk_widget_set_usize( VBrightness,-1,45 ); | |
6626 | 419 |
6755 | 420 VHueadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) ); |
8299 | 421 VHue=AddHScaler( VHueadj,NULL,1 ); |
422 gtk_table_attach( GTK_TABLE( table1 ),VHue,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
423 gtk_widget_set_usize( VHue,-1,45 ); | |
6626 | 424 |
6755 | 425 VSaturationadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) ); |
8299 | 426 VSaturation=AddHScaler( VSaturationadj,NULL,1 ); |
427 gtk_table_attach( GTK_TABLE( table1 ),VSaturation,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
428 gtk_widget_set_usize( VSaturation,-1,45 ); | |
6626 | 429 |
8299 | 430 gtk_notebook_set_tab_label( GTK_NOTEBOOK( Notebook ),gtk_notebook_get_nth_page( GTK_NOTEBOOK( Notebook ),1 ), |
431 AddLabel( MSGTR_EQU_Video,NULL ) ); | |
6626 | 432 |
8299 | 433 AddHSeparator( vbox1 ); |
6627 | 434 |
8299 | 435 hbuttonbox1=AddHButtonBox( vbox1 ); |
436 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END ); | |
437 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 ); | |
6626 | 438 |
8299 | 439 Config=AddButton( MSGTR_Config,hbuttonbox1 ); |
440 Clear=AddButton( MSGTR_Clear,hbuttonbox1 ); | |
441 Ok=AddButton( MSGTR_Ok,hbuttonbox1 ); | |
442 | |
443 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); | |
444 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE ); | |
6626 | 445 |
8719
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
446 gtk_signal_connect( GTK_OBJECT( Equalizer ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&Equalizer ); |
7217 | 447 gtk_signal_connect( GTK_OBJECT( Equalizer ),"focus_in_event",GTK_SIGNAL_FUNC( eqFocus ),(void *)2 ); |
448 | |
6626 | 449 gtk_signal_connect( GTK_OBJECT( ChannelsList ),"select_row",GTK_SIGNAL_FUNC( eqSelectChannelsListRow ),NULL ); |
450 | |
451 gtk_signal_connect( GTK_OBJECT( A3125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)0 ); | |
452 gtk_signal_connect( GTK_OBJECT( A6250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)1 ); | |
453 gtk_signal_connect( GTK_OBJECT( A125 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)2 ); | |
454 gtk_signal_connect( GTK_OBJECT( A250 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)3 ); | |
455 gtk_signal_connect( GTK_OBJECT( A500 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)4 ); | |
456 gtk_signal_connect( GTK_OBJECT( A1000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)5 ); | |
457 gtk_signal_connect( GTK_OBJECT( A2000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)6 ); | |
458 gtk_signal_connect( GTK_OBJECT( A4000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)7 ); | |
459 gtk_signal_connect( GTK_OBJECT( A8000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)8 ); | |
460 gtk_signal_connect( GTK_OBJECT( A16000 ),"motion_notify_event",GTK_SIGNAL_FUNC( eqHScaleMotion ),(void*)9 ); | |
461 | |
462 gtk_signal_connect( GTK_OBJECT( VContrast ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)1 ); | |
463 gtk_signal_connect( GTK_OBJECT( VBrightness ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)2 ); | |
464 gtk_signal_connect( GTK_OBJECT( VHue ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void*)3 ); | |
465 gtk_signal_connect( GTK_OBJECT( VSaturation ),"motion_notify_event",GTK_SIGNAL_FUNC( eqVScaleMotion ),(void *)4 ); | |
466 | |
8299 | 467 gtk_signal_connect( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)0 ); |
468 gtk_signal_connect( GTK_OBJECT( Clear ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)1 ); | |
469 gtk_signal_connect( GTK_OBJECT( Config ),"clicked",GTK_SIGNAL_FUNC( eqButtonReleased ),(void *)2 ); | |
6651 | 470 |
471 gtk_signal_connect( GTK_OBJECT( Notebook ),"switch_page",GTK_SIGNAL_FUNC( eqNotebook ),NULL ); | |
6626 | 472 |
473 gtk_window_add_accel_group( GTK_WINDOW( Equalizer ),accel_group ); | |
474 | |
475 return Equalizer; | |
476 } | |
477 | |
6651 | 478 // --- equalizer config dialog box |
479 | |
480 static GtkWidget * CBChannel1; | |
481 static GtkWidget * CEChannel1; | |
482 static GtkWidget * CBChannel2; | |
483 static GtkWidget * CEChannel2; | |
484 static GtkWidget * CBChannel3; | |
485 static GtkWidget * CEChannel3; | |
486 static GtkWidget * CBChannel4; | |
487 static GtkWidget * CEChannel4; | |
488 static GtkWidget * CBChannel5; | |
489 static GtkWidget * CEChannel5; | |
490 static GtkWidget * CBChannel6; | |
491 static GtkWidget * CEChannel6; | |
492 static GtkWidget * ecOk; | |
493 static GtkWidget * ecCancel; | |
494 | |
495 GtkWidget * create_EquConfig( void ); | |
496 | |
497 void ShowEquConfig( void ) | |
498 { | |
499 GList * Items = NULL; | |
500 | |
8299 | 501 if ( EquConfig ) gtkActive( EquConfig ); |
6651 | 502 else EquConfig=create_EquConfig(); |
503 | |
504 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Right ); | |
505 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Front_Left ); | |
506 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Right ); | |
507 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Back_Left ); | |
508 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Center ); | |
509 Items=g_list_append( Items,(gpointer)MSGTR_EQU_Bass ); | |
510 | |
511 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel1 ),Items ); | |
512 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel2 ),Items ); | |
513 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel3 ),Items ); | |
514 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel4 ),Items ); | |
515 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel5 ),Items ); | |
516 gtk_combo_set_popdown_strings( GTK_COMBO( CBChannel6 ),Items ); | |
517 | |
518 g_list_free( Items ); | |
519 | |
520 gtk_entry_set_text( GTK_ENTRY( CEChannel1 ),gtkEquChannel1 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel1 ),FALSE ); | |
521 gtk_entry_set_text( GTK_ENTRY( CEChannel2 ),gtkEquChannel2 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel2 ),FALSE ); | |
522 gtk_entry_set_text( GTK_ENTRY( CEChannel3 ),gtkEquChannel3 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel3 ),FALSE ); | |
523 gtk_entry_set_text( GTK_ENTRY( CEChannel4 ),gtkEquChannel4 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel4 ),FALSE ); | |
524 gtk_entry_set_text( GTK_ENTRY( CEChannel5 ),gtkEquChannel5 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel5 ),FALSE ); | |
525 gtk_entry_set_text( GTK_ENTRY( CEChannel6 ),gtkEquChannel6 ); gtk_entry_set_editable( GTK_ENTRY( CEChannel6 ),FALSE ); | |
526 | |
527 gtk_widget_show( EquConfig ); | |
6755 | 528 gtkSetLayer( EquConfig ); |
6651 | 529 } |
530 | |
531 void HideEquConfig( void ) | |
532 { | |
8299 | 533 if ( !EquConfig ) return; |
534 gtk_widget_hide( EquConfig ); | |
535 gtk_widget_destroy( EquConfig ); | |
536 EquConfig=NULL; | |
6651 | 537 } |
538 | |
539 static void ecButtonReleased( GtkButton * button,gpointer user_data ) | |
540 { | |
541 if ( (int)user_data ) | |
542 { // if you pressed Ok | |
9208 | 543 gfree( (void **)>kEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) ); |
544 gfree( (void **)>kEquChannel2 ); gtkEquChannel2=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel2 ) ) ); | |
545 gfree( (void **)>kEquChannel3 ); gtkEquChannel3=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel3 ) ) ); | |
546 gfree( (void **)>kEquChannel4 ); gtkEquChannel4=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel4 ) ) ); | |
547 gfree( (void **)>kEquChannel5 ); gtkEquChannel5=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel5 ) ) ); | |
548 gfree( (void **)>kEquChannel6 ); gtkEquChannel6=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel6 ) ) ); | |
6651 | 549 eqSetChannelNames(); |
550 } | |
551 HideEquConfig(); | |
552 } | |
553 | |
554 GtkWidget * create_EquConfig( void ) | |
555 { | |
556 GtkWidget * vbox1; | |
557 GtkWidget * table1; | |
558 GtkWidget * hbuttonbox1; | |
559 GtkAccelGroup * accel_group; | |
560 | |
561 accel_group=gtk_accel_group_new(); | |
562 | |
8043 | 563 EquConfig=gtk_window_new( GTK_WINDOW_TOPLEVEL ); |
6651 | 564 gtk_widget_set_name( EquConfig,"EquConfig" ); |
565 gtk_object_set_data( GTK_OBJECT( EquConfig ),"EquConfig",EquConfig ); | |
566 gtk_widget_set_usize( EquConfig,350,198 ); | |
567 GTK_WIDGET_SET_FLAGS( EquConfig,GTK_CAN_DEFAULT ); | |
568 gtk_window_set_title( GTK_WINDOW( EquConfig ),"Configure Equalizer" ); | |
569 gtk_window_set_position( GTK_WINDOW( EquConfig ),GTK_WIN_POS_CENTER ); | |
570 // gtk_window_set_modal( GTK_WINDOW( EquConfig ),TRUE ); | |
571 gtk_window_set_policy( GTK_WINDOW( EquConfig ),FALSE,FALSE,FALSE ); | |
572 gtk_window_set_wmclass( GTK_WINDOW( EquConfig ),"EquConfig","MPlayer" ); | |
573 | |
574 gtk_widget_realize( EquConfig ); | |
575 gtkAddIcon( EquConfig ); | |
576 | |
8299 | 577 vbox1=AddVBox( AddDialogFrame( EquConfig ),0 ); |
6651 | 578 |
579 table1=gtk_table_new( 6,2,FALSE ); | |
580 gtk_widget_set_name( table1,"table1" ); | |
581 gtk_widget_show( table1 ); | |
582 gtk_box_pack_start( GTK_BOX( vbox1 ),table1,TRUE,TRUE,0 ); | |
583 gtk_table_set_row_spacings( GTK_TABLE( table1 ),4 ); | |
584 gtk_table_set_col_spacings( GTK_TABLE( table1 ),4 ); | |
585 | |
8299 | 586 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 587 AddLabel( MSGTR_EQU_Channel1,NULL ), |
8299 | 588 0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 589 |
8299 | 590 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 591 AddLabel( MSGTR_EQU_Channel2,NULL ), |
8299 | 592 0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 593 |
8299 | 594 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 595 AddLabel( MSGTR_EQU_Channel3,NULL ), |
8299 | 596 0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 597 |
8299 | 598 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 599 AddLabel( MSGTR_EQU_Channel4,NULL ), |
8299 | 600 0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 601 |
8299 | 602 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 603 AddLabel( MSGTR_EQU_Channel5,NULL ), |
8299 | 604 0,1,4,5,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 605 |
8299 | 606 gtk_table_attach( GTK_TABLE( table1 ), |
9208 | 607 AddLabel( MSGTR_EQU_Channel6,NULL ), |
8299 | 608 0,1,5,6,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); |
6651 | 609 |
8299 | 610 CBChannel1=AddComboBox( NULL ); |
611 gtk_table_attach( GTK_TABLE( table1 ),CBChannel1,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 612 |
613 CEChannel1=GTK_COMBO( CBChannel1 )->entry; | |
614 gtk_widget_set_name( CEChannel1,"CEChannel1" ); | |
615 gtk_widget_show( CEChannel1 ); | |
616 | |
8299 | 617 CBChannel2=AddComboBox( NULL ); |
618 gtk_table_attach( GTK_TABLE( table1 ),CBChannel2,1,2,1,2,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 619 |
620 CEChannel2=GTK_COMBO( CBChannel2 )->entry; | |
621 gtk_widget_set_name( CEChannel2,"CEChannel2" ); | |
622 gtk_widget_show( CEChannel2 ); | |
623 | |
8299 | 624 CBChannel3=AddComboBox( NULL ); |
625 gtk_table_attach( GTK_TABLE( table1 ),CBChannel3,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 626 |
627 CEChannel3=GTK_COMBO( CBChannel3 )->entry; | |
628 gtk_widget_set_name( CEChannel3,"CEChannel3" ); | |
629 gtk_widget_show( CEChannel3 ); | |
630 | |
8299 | 631 CBChannel4=AddComboBox( NULL ); |
632 gtk_table_attach( GTK_TABLE( table1 ),CBChannel4,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 633 |
634 CEChannel4=GTK_COMBO( CBChannel4 )->entry; | |
635 gtk_widget_set_name( CEChannel4,"CEChannel4" ); | |
636 gtk_widget_show( CEChannel4 ); | |
637 | |
8299 | 638 CBChannel5=AddComboBox( NULL ); |
639 gtk_table_attach( GTK_TABLE( table1 ),CBChannel5,1,2,4,5,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 640 |
641 CEChannel5=GTK_COMBO( CBChannel5 )->entry; | |
642 gtk_widget_set_name( CEChannel5,"CEChannel5" ); | |
643 gtk_widget_show( CEChannel5 ); | |
644 | |
8299 | 645 CBChannel6=AddComboBox( NULL ); |
646 gtk_table_attach( GTK_TABLE( table1 ),CBChannel6,1,2,5,6,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 ); | |
6651 | 647 |
648 CEChannel6=GTK_COMBO( CBChannel6 )->entry; | |
649 gtk_widget_set_name( CEChannel6,"CEChannel6" ); | |
650 gtk_widget_show( CEChannel6 ); | |
651 | |
8299 | 652 AddHSeparator( vbox1 ); |
6651 | 653 |
8299 | 654 hbuttonbox1=AddHButtonBox( vbox1 ); |
655 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END ); | |
656 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 ); | |
6651 | 657 |
8299 | 658 ecOk=AddButton( MSGTR_Ok,hbuttonbox1 ); |
659 ecCancel=AddButton( MSGTR_Cancel,hbuttonbox1 ); | |
6651 | 660 |
8299 | 661 gtk_widget_add_accelerator( ecOk,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE ); |
662 gtk_widget_add_accelerator( ecCancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); | |
6651 | 663 |
8719
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
664 gtk_signal_connect( GTK_OBJECT( EquConfig ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&EquConfig ); |
6651 | 665 |
8299 | 666 gtk_signal_connect( GTK_OBJECT( ecOk ),"clicked",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)1 ); |
667 gtk_signal_connect( GTK_OBJECT( ecCancel ),"clicked",GTK_SIGNAL_FUNC( ecButtonReleased ),(void *)0 ); | |
6651 | 668 |
669 gtk_window_add_accel_group( GTK_WINDOW( EquConfig ),accel_group ); | |
670 | |
671 return EquConfig; | |
672 } | |
673 |