mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
(trunk gtk) #3033 "wrong calls to GtkFileChooserDialog" -- fixed in trunk for 2.00
This commit is contained in:
parent
31b30501c4
commit
7a129d9cf9
3 changed files with 4 additions and 4 deletions
|
@ -337,7 +337,7 @@ 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 ),
|
||||
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( );
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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" ) );
|
||||
|
|
Loading…
Reference in a new issue