Mercurial > mplayer.hg
comparison gui/dialog/fileselect.c @ 35960:13d09ba17e97
Be more precise about type.
author | ib |
---|---|
date | Sun, 24 Mar 2013 15:12:16 +0000 |
parents | acec130e2ab2 |
children | 373c1104023f |
comparison
equal
deleted
inserted
replaced
35959:acec130e2ab2 | 35960:13d09ba17e97 |
---|---|
159 GdkPixmap * dpixmap; | 159 GdkPixmap * dpixmap; |
160 GdkPixmap * fpixmap; | 160 GdkPixmap * fpixmap; |
161 GdkBitmap * dmask; | 161 GdkBitmap * dmask; |
162 GdkBitmap * fmask; | 162 GdkBitmap * fmask; |
163 | 163 |
164 static char * get_current_dir_name_utf8( void ) | 164 static gchar * get_current_dir_name_utf8( void ) |
165 { | 165 { |
166 char * dir, * utf8dir; | 166 char * dir; |
167 gchar * utf8dir; | |
167 dir = get_current_dir_name(); | 168 dir = get_current_dir_name(); |
168 utf8dir = g_filename_display_name( dir ); | 169 utf8dir = g_filename_display_name( dir ); |
169 free( dir ); | 170 free( dir ); |
170 return utf8dir; | 171 return utf8dir; |
171 } | 172 } |
366 if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList ); | 367 if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList ); |
367 } | 368 } |
368 | 369 |
369 static void fs_Up_released( GtkButton * button, gpointer user_data ) | 370 static void fs_Up_released( GtkButton * button, gpointer user_data ) |
370 { | 371 { |
371 char *utf8dir; | 372 gchar *utf8dir; |
372 | 373 |
373 chdir( ".." ); | 374 chdir( ".." ); |
374 fsSelectedFile=fsThatDir; | 375 fsSelectedFile=fsThatDir; |
375 CheckDir( fsFNameList ); | 376 CheckDir( fsFNameList ); |
376 utf8dir = get_current_dir_name_utf8(); | 377 utf8dir = get_current_dir_name_utf8(); |
386 struct stat fs; | 387 struct stat fs; |
387 gchar * selected; | 388 gchar * selected; |
388 | 389 |
389 if( ( stat( fsSelectedFile,&fs ) == 0 ) && S_ISDIR( fs.st_mode ) ) | 390 if( ( stat( fsSelectedFile,&fs ) == 0 ) && S_ISDIR( fs.st_mode ) ) |
390 { | 391 { |
391 char *utf8dir; | 392 gchar *utf8dir; |
392 if ( chdir( fsSelectedFile ) != 0 ) return; | 393 if ( chdir( fsSelectedFile ) != 0 ) return; |
393 fsSelectedFile=fsThatDir; | 394 fsSelectedFile=fsThatDir; |
394 CheckDir( fsFNameList ); | 395 CheckDir( fsFNameList ); |
395 utf8dir = get_current_dir_name_utf8(); | 396 utf8dir = get_current_dir_name_utf8(); |
396 gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)utf8dir ); | 397 gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)utf8dir ); |