(trunk gtk) #3033 "wrong calls to GtkFileChooserDialog" -- fixed in trunk for 2.00

This commit is contained in:
Charles Kerr 2010-03-09 22:00:43 +00:00
parent 31b30501c4
commit 7a129d9cf9
3 changed files with 4 additions and 4 deletions

View File

@ -337,8 +337,8 @@ addSingleTorrentDialog( GtkWindow * parent, TrCore * core, tr_ctor * ctor )
++col;
w = gtk_file_chooser_button_new( _( "Select Destination Folder" ),
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
if( !gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ),
data->downloadDir ) )
if( !gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( w ),
data->downloadDir ) )
g_warning( "couldn't select '%s'", data->downloadDir );
list = get_recent_destinations( );
for( walk = list; walk; walk = walk->next )

View File

@ -403,7 +403,7 @@ make_meta_ui( GtkWindow * parent, TrCore * core )
str = _( "Sa_ve to:" );
w = gtk_file_chooser_button_new( NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), getDefaultSavePath( ) );
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( w ), getDefaultSavePath( ) );
ui->destination_chooser = w;
hig_workarea_add_row( t, &row, str, w, NULL );

View File

@ -134,7 +134,7 @@ gtr_relocate_dialog_new( GtkWindow * parent, tr_torrent * tor )
if( previousLocation == NULL )
previousLocation = g_strdup( pref_string_get( TR_PREFS_KEY_DOWNLOAD_DIR ) );
w = gtk_file_chooser_button_new( _( "Set Torrent Location" ), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER );
gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( w ), previousLocation );
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( w ), previousLocation );
g_object_set_data( G_OBJECT( d ), "chooser", w );
hig_workarea_add_row( t, &row, _( "Torrent _location:" ), w, NULL );
w = gtk_radio_button_new_with_mnemonic( NULL, _( "_Move from the current folder" ) );