diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-01-24 20:12:08 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-01-24 20:12:08 +0800 |
commit | 8fa39b31dec0263e9c5a669e8a074f55c32cf9ce (patch) | |
tree | fa2112249daac2d245f4d4acdbfda62b2c0f4970 /embed/mozilla/ContentHandler.cpp | |
parent | 5c9e26f898ab481887297ab2eed8348d41a74230 (diff) | |
download | gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar.gz gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar.bz2 gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar.lz gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar.xz gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.tar.zst gsoc2013-epiphany-8fa39b31dec0263e9c5a669e8a074f55c32cf9ce.zip |
Prepare for 1.1.4
2004-01-24 Marco Pesenti Gritti <marco@gnome.org>
* NEWS:
* configure.in:
Prepare for 1.1.4
* embed/mozilla/ContentHandler.cpp:
Fix Save As from download dialog
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r-- | embed/mozilla/ContentHandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index a92f2ce02..0d315d8e5 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -135,7 +135,7 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile( dialog = ephy_file_chooser_new (_("Save"), parentWindow, GTK_FILE_CHOOSER_ACTION_SAVE, - CONF_STATE_DOWNLOAD_DIR); + CONF_STATE_SAVE_DIR); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), NS_ConvertUCS2toUTF8 (aDefaultFile).get()); response = gtk_dialog_run (GTK_DIALOG (dialog)); @@ -143,9 +143,13 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile( if (response == EPHY_RESPONSE_SAVE) { filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); - BuildDownloadPath (filename, _retval); + + nsCOMPtr <nsILocalFile> destFile (do_CreateInstance(NS_LOCAL_FILE_CONTRACTID)); + destFile->InitWithNativePath (nsDependentCString (filename)); g_free (filename); + NS_IF_ADDREF (*_retval = destFile); + gtk_widget_destroy (GTK_WIDGET (dialog)); return NS_OK; |