From 7a129d9cf9e37fb045420c721cd8ddc7277b06bf Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 9 Mar 2010 22:00:43 +0000 Subject: [PATCH] (trunk gtk) #3033 "wrong calls to GtkFileChooserDialog" -- fixed in trunk for 2.00 --- gtk/add-dialog.c | 4 ++-- gtk/makemeta-ui.c | 2 +- gtk/relocate.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/add-dialog.c b/gtk/add-dialog.c index e43773847..6ea18cda2 100644 --- a/gtk/add-dialog.c +++ b/gtk/add-dialog.c @@ -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 ) diff --git a/gtk/makemeta-ui.c b/gtk/makemeta-ui.c index 6dcf986cf..5569edf37 100644 --- a/gtk/makemeta-ui.c +++ b/gtk/makemeta-ui.c @@ -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 ); diff --git a/gtk/relocate.c b/gtk/relocate.c index 07a44c19f..0dd11a591 100644 --- a/gtk/relocate.c +++ b/gtk/relocate.c @@ -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" ) );