Show
Ignore:
Timestamp:
04/20/06 10:08:49 (3 years ago)
Author:
jordi
Message:

The Main presenter now pass the last folder used to open a file to the view, so it can change the shown folder on the open dialog. Also, the main presenter saves the last folder to the configuration class.

Files:
1 modified

Legend:

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

    r95 r97  
    192192 
    193193gchar * 
    194 MainView::openFileDialog () 
     194MainView::openFileDialog (const gchar *lastFolder) 
    195195{ 
    196196    GtkWidget *openDialog = gtk_file_chooser_dialog_new (_("Open PDF File"), 
     
    200200            GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, 
    201201            NULL); 
     202     
     203    if ( NULL != lastFolder ) 
     204    { 
     205        gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (openDialog), 
     206                                             lastFolder); 
     207    } 
     208     
    202209    if ( GTK_RESPONSE_ACCEPT == gtk_dialog_run (GTK_DIALOG (openDialog)) ) 
    203210    {