Ticket #977: opendialog.diff

File opendialog.diff, 793 bytes (added by glin@…, 18 years ago)

Patch that adds current directory for open file dialog (e.g. for subtitles)

  • gui/mplayer/gtk/fs.c

     
    303303   {
    304304    for ( i=0;i < fsPersistant_MaxPos;i++ )
    305305     if ( fsHistory[i] ) { fsTopList_items=g_list_append( fsTopList_items,fsHistory[i] ); c=0; }
    306    }
    307   if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() );
     306    if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() );
     307   } else fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() );
    308308 }
    309309 if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) );
    310310 fsTopList_items=g_list_append( fsTopList_items,"/home" );