Mercurial > mplayer.hg
comparison gui/dialog/equalizer.c @ 36010:5c720c434d56
Silence "warning: unused parameter".
author | ib |
---|---|
date | Sat, 30 Mar 2013 15:09:51 +0000 |
parents | d154d0035cb0 |
children | d2d776c8e040 |
comparison
equal
deleted
inserted
replaced
36009:e7bc0058139a | 36010:5c720c434d56 |
---|---|
126 } | 126 } |
127 | 127 |
128 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) | 128 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) |
129 { | 129 { |
130 equalizer_t eq; | 130 equalizer_t eq; |
131 | |
132 (void) widget; | |
133 (void) event; | |
134 | |
131 switch ( (int)user_data ) | 135 switch ( (int)user_data ) |
132 { | 136 { |
133 case 0: eq.gain=A3125adj->value; break; | 137 case 0: eq.gain=A3125adj->value; break; |
134 case 1: eq.gain=A6250adj->value; break; | 138 case 1: eq.gain=A6250adj->value; break; |
135 case 2: eq.gain=A125adj->value; break; | 139 case 2: eq.gain=A125adj->value; break; |
154 return FALSE; | 158 return FALSE; |
155 } | 159 } |
156 | 160 |
157 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) | 161 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data ) |
158 { | 162 { |
163 (void) widget; | |
164 (void) event; | |
159 | 165 |
160 switch( (int)user_data ) | 166 switch( (int)user_data ) |
161 { | 167 { |
162 case 1: mplayer( MPLAYER_SET_CONTRAST,VContrastadj->value,0 ); break; | 168 case 1: mplayer( MPLAYER_SET_CONTRAST,VContrastadj->value,0 ); break; |
163 case 2: mplayer( MPLAYER_SET_BRIGHTNESS,VBrightnessadj->value,0 ); break; | 169 case 2: mplayer( MPLAYER_SET_BRIGHTNESS,VBrightnessadj->value,0 ); break; |
168 return FALSE; | 174 return FALSE; |
169 } | 175 } |
170 | 176 |
171 static void eqButtonReleased( GtkButton * button,gpointer user_data ) | 177 static void eqButtonReleased( GtkButton * button,gpointer user_data ) |
172 { | 178 { |
179 (void) button; | |
180 | |
173 switch( (int)user_data ) | 181 switch( (int)user_data ) |
174 { | 182 { |
175 case 0: | 183 case 0: |
176 gtk_widget_destroy( Equalizer ); | 184 gtk_widget_destroy( Equalizer ); |
177 if ( EquConfig ) gtk_widget_destroy( EquConfig ); | 185 if ( EquConfig ) gtk_widget_destroy( EquConfig ); |
199 } | 207 } |
200 } | 208 } |
201 | 209 |
202 static gboolean eqFocus( GtkWidget * widget,GdkEvent * event,gpointer user_data ) | 210 static gboolean eqFocus( GtkWidget * widget,GdkEvent * event,gpointer user_data ) |
203 { | 211 { |
212 (void) widget; | |
213 (void) event; | |
214 (void) user_data; | |
215 | |
204 eqSetBands( Channel ); | 216 eqSetBands( Channel ); |
205 return FALSE; | 217 return FALSE; |
206 } | 218 } |
207 | 219 |
208 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data ) | 220 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data ) |
209 { | 221 { |
222 (void) clist; | |
223 (void) column; | |
224 (void) event; | |
225 (void) user_data; | |
226 | |
210 Channel=row - 1; | 227 Channel=row - 1; |
211 eqSetBands( Channel ); | 228 eqSetBands( Channel ); |
212 if ( Channel == -1 ) | 229 if ( Channel == -1 ) |
213 { | 230 { |
214 unsigned int i,j; equalizer_t eq; | 231 unsigned int i,j; equalizer_t eq; |
219 } | 236 } |
220 | 237 |
221 static void eqNotebook( GtkNotebook * notebook, gpointer page, | 238 static void eqNotebook( GtkNotebook * notebook, gpointer page, |
222 guint page_num, gpointer user_data ) | 239 guint page_num, gpointer user_data ) |
223 { | 240 { |
241 (void) notebook; | |
242 (void) page; | |
243 (void) user_data; | |
244 | |
224 if ( page_num ) gtk_widget_hide( Config ); | 245 if ( page_num ) gtk_widget_hide( Config ); |
225 else gtk_widget_show( Config ); | 246 else gtk_widget_show( Config ); |
226 } | 247 } |
227 | 248 |
228 static GtkWidget * CreateEqualizer( void ) | 249 static GtkWidget * CreateEqualizer( void ) |
546 gtkSetLayer( EquConfig ); | 567 gtkSetLayer( EquConfig ); |
547 } | 568 } |
548 | 569 |
549 static void ecButtonReleased( GtkButton * button,gpointer user_data ) | 570 static void ecButtonReleased( GtkButton * button,gpointer user_data ) |
550 { | 571 { |
572 (void) button; | |
573 | |
551 if ( (int)user_data ) | 574 if ( (int)user_data ) |
552 { // if you pressed Ok | 575 { // if you pressed Ok |
553 nfree( gtkEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) ); | 576 nfree( gtkEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) ); |
554 nfree( gtkEquChannel2 ); gtkEquChannel2=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel2 ) ) ); | 577 nfree( gtkEquChannel2 ); gtkEquChannel2=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel2 ) ) ); |
555 nfree( gtkEquChannel3 ); gtkEquChannel3=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel3 ) ) ); | 578 nfree( gtkEquChannel3 ); gtkEquChannel3=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel3 ) ) ); |