From: Cheng Zhao Date: Thu, 13 Mar 2014 05:27:01 +0000 (+0800) Subject: gtk: Enable create folder in dialog. X-Git-Tag: v0.11.0~8^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4c63307ae7d5e94da8b8e5bbccfca89fbeb7d256;p=electron.git gtk: Enable create folder in dialog. --- diff --git a/browser/ui/file_dialog_gtk.cc b/browser/ui/file_dialog_gtk.cc index 8effcfa3..4b78c06e 100644 --- a/browser/ui/file_dialog_gtk.cc +++ b/browser/ui/file_dialog_gtk.cc @@ -32,6 +32,8 @@ class FileChooserDialog { if (action == GTK_FILE_CHOOSER_ACTION_SAVE) gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog_), TRUE); + if (action != GTK_FILE_CHOOSER_ACTION_OPEN) + gtk_file_chooser_set_create_folders(GTK_FILE_CHOOSER(dialog_), TRUE); // Set window-to-parent modality by adding the dialog to the same window // group as the parent.