Show
Ignore:
Timestamp:
02/23/07 03:05:25 (22 months ago)
Author:
jordi
Message:

"Save a copy" dialog now sets the original PDF file name as input file name for saving. This fixes bug #72.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/MainView.cxx

    r259 r263  
    382382 
    383383gchar * 
    384 MainView::saveFileDialog (const gchar *lastFolder) 
     384MainView::saveFileDialog (const gchar *lastFolder, const gchar *fileName) 
    385385{ 
    386386    GtkWidget *saveDialog = gtk_file_chooser_dialog_new (_("Save PDF File"), 
     
    398398        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (saveDialog), 
    399399                                             lastFolder); 
     400    } 
     401    // Set the original file name to use as initial save name, if any. 
     402    if ( NULL != fileName ) 
     403    { 
     404        gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (saveDialog), 
     405                                           fileName); 
    400406    } 
    401407