From: Enrico Tröger Date: Tue, 2 Jun 2009 22:59:41 +0000 (+0200) Subject: Show the suggested filename in the Save As dialog for downloads X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ac1af55dadab498debebe3e7d2f73a82e22c03;p=midori Show the suggested filename in the Save As dialog for downloads --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 217dd1d1..534ec84d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1277,6 +1277,8 @@ midori_view_download_requested_cb (GtkWidget* view, gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (browser)); /* FIXME: Remember the last folder gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), last_dir); */ + gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), + webkit_download_get_suggested_filename (download)); gtk_widget_show (dialog); g_signal_connect (dialog, "response", G_CALLBACK (midori_view_download_save_as_response_cb), download);