[MPlayer-cvslog] r36104 - in trunk/gui: dialog/about.c dialog/equalizer.c dialog/fileselect.c dialog/msgbox.c dialog/playlist.c dialog/preferences.c dialog/skinbrowser.c dialog/url.c ui/menu.c
ib
subversion at mplayerhq.hu
Sat Mar 30 16:09:51 CET 2013
Author: ib
Date: Sat Mar 30 16:09:51 2013
New Revision: 36104
Log:
Silence "warning: unused parameter".
Modified:
trunk/gui/dialog/about.c
trunk/gui/dialog/equalizer.c
trunk/gui/dialog/fileselect.c
trunk/gui/dialog/msgbox.c
trunk/gui/dialog/playlist.c
trunk/gui/dialog/preferences.c
trunk/gui/dialog/skinbrowser.c
trunk/gui/dialog/url.c
trunk/gui/ui/menu.c
Modified: trunk/gui/dialog/about.c
==============================================================================
--- trunk/gui/dialog/about.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/about.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -29,7 +29,12 @@
GtkWidget * About = NULL;
static void abWidgetDestroy( GtkButton * button, gpointer user_data )
-{ gtk_widget_destroy( About ); }
+{
+ (void) button;
+ (void) user_data;
+
+ gtk_widget_destroy( About );
+}
static GtkWidget * CreateAbout( void )
{
Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/equalizer.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -128,6 +128,10 @@ static void eqSetChannelNames( void )
static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
{
equalizer_t eq;
+
+ (void) widget;
+ (void) event;
+
switch ( (int)user_data )
{
case 0: eq.gain=A3125adj->value; break;
@@ -156,6 +160,8 @@ static gboolean eqHScaleMotion( GtkWidge
static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion * event,gpointer user_data )
{
+ (void) widget;
+ (void) event;
switch( (int)user_data )
{
@@ -170,6 +176,8 @@ static gboolean eqVScaleMotion( GtkWidge
static void eqButtonReleased( GtkButton * button,gpointer user_data )
{
+ (void) button;
+
switch( (int)user_data )
{
case 0:
@@ -201,12 +209,21 @@ static void eqButtonReleased( GtkButton
static gboolean eqFocus( GtkWidget * widget,GdkEvent * event,gpointer user_data )
{
+ (void) widget;
+ (void) event;
+ (void) user_data;
+
eqSetBands( Channel );
return FALSE;
}
static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
+ (void) clist;
+ (void) column;
+ (void) event;
+ (void) user_data;
+
Channel=row - 1;
eqSetBands( Channel );
if ( Channel == -1 )
@@ -221,6 +238,10 @@ static void eqSelectChannelsListRow( Gtk
static void eqNotebook( GtkNotebook * notebook, gpointer page,
guint page_num, gpointer user_data )
{
+ (void) notebook;
+ (void) page;
+ (void) user_data;
+
if ( page_num ) gtk_widget_hide( Config );
else gtk_widget_show( Config );
}
@@ -548,6 +569,8 @@ void ShowEquConfig( void )
static void ecButtonReleased( GtkButton * button,gpointer user_data )
{
+ (void) button;
+
if ( (int)user_data )
{ // if you pressed Ok
nfree( gtkEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) );
Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/fileselect.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -300,6 +300,8 @@ static void fs_PersistantHistory( char *
static void fs_fsFilterCombo_activate( GtkEntry * entry,
gpointer user_data )
{
+ (void) entry;
+
fsFilter=gtk_entry_get_text( GTK_ENTRY( user_data ) );
CheckDir( fsFNameList );
}
@@ -310,6 +312,8 @@ static void fs_fsFilterCombo_changed( Gt
const char * str;
int i;
+ (void) editable;
+
str=gtk_entry_get_text( GTK_ENTRY(user_data ) );
switch ( fsType )
@@ -350,6 +354,8 @@ static void fs_fsPathCombo_activate( Gtk
const unsigned char * str;
gchar * dirname;
+ (void) entry;
+
str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
dirname=g_hash_table_lookup(fsPathTable, str);
if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList );
@@ -361,6 +367,8 @@ static void fs_fsPathCombo_changed( GtkE
const unsigned char * str;
gchar * dirname;
+ (void) editable;
+
str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
dirname=g_hash_table_lookup(fsPathTable, str);
if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList );
@@ -370,6 +378,9 @@ static void fs_Up_released( GtkButton *
{
gchar *utf8dir;
+ (void) button;
+ (void) user_data;
+
chdir( ".." );
CheckDir( fsFNameList );
utf8dir = get_current_dir_name_utf8();
@@ -381,6 +392,9 @@ static void fs_Up_released( GtkButton *
static void fs_Cancel_released( GtkButton * button,gpointer user_data )
{
+ (void) button;
+ (void) user_data;
+
gtk_widget_destroy( FileSelector );
fsLastFNameListSelected = fsCurrFNameListSelected;
}
@@ -392,6 +406,9 @@ static void fs_Ok_released( GtkButton *
struct stat fs;
gchar * selected;
+ (void) button;
+ (void) user_data;
+
if( ( stat( fsSelectedFile,&fs ) == 0 ) && S_ISDIR( fs.st_mode ) )
{
gchar *utf8dir;
@@ -450,6 +467,9 @@ static void fs_Ok_released( GtkButton *
static void fs_fsFNameList_select_row( GtkCList * clist, gint row, gint column,
GdkEvent * event, gpointer user_data)
{
+ (void) column;
+ (void) user_data;
+
fsCurrFNameListSelected = row;
fsSelectedFile = gtk_clist_get_row_data(clist, row);
if( event && event->type == GDK_BUTTON_PRESS ) gtk_button_released( GTK_BUTTON( fsOk ) );
@@ -459,6 +479,8 @@ static gboolean on_FileSelect_key_releas
GdkEvent * event,
gpointer user_data )
{
+ (void) user_data;
+
if ( GTK_WIDGET_TYPE( widget ) == GTK_TYPE_BUTTON )
{
if (event->key.keyval == GDK_Return) gtk_button_released( GTK_BUTTON( widget ) );
@@ -489,6 +511,8 @@ static gboolean fs_fsFNameList_event( Gt
GdkEventButton *bevent;
gint row, col;
+ (void) user_data;
+
bevent = (GdkEventButton *) event;
if ( event->type == GDK_BUTTON_RELEASE && bevent->button == 2 )
Modified: trunk/gui/dialog/msgbox.c
==============================================================================
--- trunk/gui/dialog/msgbox.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/msgbox.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -33,6 +33,9 @@ GtkWidget * MessageBox = NULL;
static void on_Ok_released( GtkButton * button,gpointer user_data )
{
+ (void) button;
+ (void) user_data;
+
gtk_widget_destroy( MessageBox );
}
Modified: trunk/gui/dialog/playlist.c
==============================================================================
--- trunk/gui/dialog/playlist.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/playlist.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -92,6 +92,10 @@ static int compare_func(const void *a, c
static void plRowSelect( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
+ (void) clist;
+ (void) column;
+ (void) event;
+
switch ( (int) user_data )
{
case 0: CLFileSelected[row]=True; break;
@@ -101,6 +105,10 @@ static void plRowSelect( GtkCList * clis
static void plUnRowSelect( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
+ (void) clist;
+ (void) column;
+ (void) event;
+
switch ( (int) user_data )
{
case 0: CLFileSelected[row]=False; break;
@@ -110,6 +118,8 @@ static void plUnRowSelect( GtkCList * cl
static void plButtonReleased( GtkButton * button,gpointer user_data )
{
+ (void) button;
+
switch ( (int) user_data )
{
case 1: // ok
@@ -326,6 +336,8 @@ static void plCTree( GtkCTree * ctree,Gt
gchar * path;
struct stat statbuf;
+ (void) user_data;
+
DirNode=gtk_ctree_node_get_row_data( ctree,parent_node );
if ( !DirNode->scaned )
{
@@ -399,6 +411,11 @@ static void plCTRow(GtkCList * clist, gi
{
DirNodeType * DirNode;
GtkCTreeNode * node;
+
+ (void) column;
+ (void) event;
+ (void) user_data;
+
node=gtk_ctree_node_nth( GTK_CTREE( clist ),row );
DirNode=gtk_ctree_node_get_row_data( GTK_CTREE( clist ),node );
current_path=DirNode->path;
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/preferences.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -204,6 +204,8 @@ static void prEntry( GtkEditable * edita
const char * comment;
int i;
+ (void) editable;
+
switch( (int)user_data )
{
#ifdef CONFIG_FREETYPE
@@ -236,6 +238,8 @@ static void prEntry( GtkEditable * edita
static void prButton( GtkButton * button, gpointer user_data )
{
+ (void) button;
+
switch ( (int)user_data )
{
case bOk:
@@ -377,6 +381,9 @@ static void prButton( GtkButton * button
static gboolean prHScaler( GtkWidget * widget,GdkEvent * event,gpointer user_data )
{
+ (void) widget;
+ (void) event;
+
switch ( (int)user_data )
{
case 0: // extra stereo coefficient
@@ -423,6 +430,9 @@ static gboolean prHScaler( GtkWidget * w
static void prToggled( GtkToggleButton * togglebutton,gpointer user_data )
{
int window;
+
+ (void) togglebutton;
+
switch ( (int)user_data )
{
case 0: // extra stereo coefficient
@@ -477,6 +487,10 @@ static void prToggled( GtkToggleButton *
static void prCListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
+ (void) clist;
+ (void) column;
+ (void) event;
+
switch ( (int)user_data )
{
case 0: // audio driver
@@ -1499,6 +1513,9 @@ static GtkWidget *BAudioOk;
static GtkWidget *BAudioCancel;
static void audioButton(GtkButton *button, gpointer user_data) {
+
+ (void) button;
+
switch( (int)user_data ) {
case 1:
#ifdef CONFIG_OSS_AUDIO
@@ -1720,6 +1737,8 @@ void ShowDXR3Config( void )
static void dxr3Button( GtkButton * button,gpointer user_data )
{
+ (void) button;
+
switch ( (int)user_data )
{
case 0: // Ok
Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/skinbrowser.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -46,6 +46,8 @@ GtkWidget * SkinBrowser = NULL;
static void prButton( GtkButton * button,gpointer user_data )
{
+ (void) button;
+
if ( sbSelectedSkin )
{
switch ( (int)user_data )
@@ -65,6 +67,9 @@ static void prButton( GtkButton * button
static void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
+ (void) column;
+ (void) user_data;
+
gtk_clist_get_text( clist,row,0,&sbSelectedSkin );
if ( strcmp( prev,sbSelectedSkin ) )
{
Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/dialog/url.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -46,6 +46,8 @@ static void on_Button_pressed( GtkButton
{
urlItem * item;
+ (void) button;
+
if ( (int)user_data )
{
gchar * str= strdup( gtk_entry_get_text( GTK_ENTRY( URLEntry ) ) );
Modified: trunk/gui/ui/menu.c
==============================================================================
--- trunk/gui/ui/menu.c Sat Mar 30 15:33:35 2013 (r36103)
+++ trunk/gui/ui/menu.c Sat Mar 30 16:09:51 2013 (r36104)
@@ -75,6 +75,10 @@ static void uiMenuMouse( int Button,int
{
int x,y,i;
+ (void) Button;
+ (void) RX;
+ (void) RY;
+
menuItem=-1;
x=X - guiApp.menuWindow.X;
y=Y - guiApp.menuWindow.Y;
More information about the MPlayer-cvslog
mailing list