]> spindle.queued.net Git - midori/commitdiff
Show the suggested filename in the Save As dialog for downloads
authorEnrico Tröger <enrico.troeger@uvena.de>
Tue, 2 Jun 2009 22:59:41 +0000 (00:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 2 Jun 2009 22:59:41 +0000 (00:59 +0200)
midori/midori-browser.c

index 217dd1d1454541c53505169abe29d6ae9f0a90b5..534ec84d12b352eae44eb7dbb781cacfa6ac9463 100644 (file)
@@ -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);