[baobab] window: Use more standard Filechooser parameters



commit db284ea371ea66a37710143207b8f056365e06a5
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sat May 30 09:33:49 2020 +0200

    window: Use more standard Filechooser parameters

 src/baobab-window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index f1cdd49..836a414 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -215,17 +215,17 @@ namespace Baobab {
             var file_chooser = new Gtk.FileChooserDialog (_("Select Folder"), this,
                                                           Gtk.FileChooserAction.SELECT_FOLDER,
                                                           _("_Cancel"), Gtk.ResponseType.CANCEL,
-                                                          _("_Open"), Gtk.ResponseType.ACCEPT);
+                                                          _("_Open"), Gtk.ResponseType.OK);
 
             file_chooser.local_only = false;
-            file_chooser.create_folders = false;
             file_chooser.modal = true;
+            file_chooser.set_default_response (Gtk.ResponseType.OK);
 
             var check_button = new Gtk.CheckButton.with_label (_("Recursively analyze mount points"));
             file_chooser.extra_widget = check_button;
 
             file_chooser.response.connect ((response) => {
-                if (response == Gtk.ResponseType.ACCEPT) {
+                if (response == Gtk.ResponseType.OK) {
                     var flags = check_button.active ? ScanFlags.NONE : ScanFlags.EXCLUDE_MOUNTS;
                     scan_directory (file_chooser.get_file (), flags);
                 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]