Mercurial > mplayer.hg
changeset 25236:d541a8203657
Get rid of fsPressed variable and related code. It does not really
have a function and some of the related code is hopelessly broken
(hand-implemented strrchr, writing to a const char* etc).
author | reimar |
---|---|
date | Sun, 02 Dec 2007 17:45:08 +0000 |
parents | b444558c0b22 |
children | 963cd0542cec |
files | gui/mplayer/gtk/fs.c |
diffstat | 1 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/mplayer/gtk/fs.c Sun Dec 02 16:52:19 2007 +0000 +++ b/gui/mplayer/gtk/fs.c Sun Dec 02 17:45:08 2007 +0000 @@ -36,7 +36,6 @@ unsigned char * fsThatDir = "."; const gchar * fsFilter = "*"; -int fsPressed = 0; int fsType = 0; char * fsVideoFilterNames[][2] = @@ -402,7 +401,6 @@ const unsigned char * str; str=gtk_entry_get_text( GTK_ENTRY( user_data ) ); - fsPressed=2; if ( chdir( str ) != -1 ) CheckDir( fsFNameList,get_current_dir_name() ); } @@ -440,28 +438,7 @@ return; } - switch( fsPressed ) - { - case 1: fsSelectedDirectory=(unsigned char *)get_current_dir_name(); - break; - case 2: - str=gtk_entry_get_text( GTK_ENTRY( fsPathCombo ) ); - fsSelectedFile=str; - if ( !fsFileExist( fsSelectedFile ) ) { HideFileSelect(); return; } - fsSelectedDirectory=fsSelectedFile; - size=strlen( fsSelectedDirectory ); - for ( j=0;j<size;j++ ) - { - if ( fsSelectedDirectory[ size - j ] == '/' ) - { - fsSelectedFile+=size - j + 1; - fsSelectedDirectory[ size - j ]=0; - break; - } - } - break; - } switch ( fsType ) { case fsVideoSelector: @@ -511,7 +488,6 @@ void fs_fsFNameList_select_row( GtkWidget * widget,gint row,gint column,GdkEventButton *bevent,gpointer user_data ) { gtk_clist_get_text( GTK_CLIST(widget ),row,1,&fsSelectedFile ); - fsPressed=1; if( bevent && bevent->type == GDK_BUTTON_PRESS ) gtk_button_released( GTK_BUTTON( fsOk ) ); }