From bb897658c737b0d9fe01f6fc90fbff571b13daef Mon Sep 17 00:00:00 2001 From: Tony George Date: Fri, 11 May 2018 08:37:45 +0530 Subject: [PATCH] Fixed some issues --- src/Gtk/FilesManager.vala | 4 ++-- src/Gtk/ScriptManager.vala | 4 ++++ src/Utility/Gtk/GtkHelper.vala | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Gtk/FilesManager.vala b/src/Gtk/FilesManager.vala index 6f208d6..bedc6c5 100644 --- a/src/Gtk/FilesManager.vala +++ b/src/Gtk/FilesManager.vala @@ -161,7 +161,7 @@ public class FilesManager : ManagerBox { var default_filter = filter; - var selected_items = gtk_select_files(window, true, true, filters, default_filter); + var selected_items = gtk_select_files(window, true, true, filters, default_filter, "", "/"); //string iso_file = (selected_files.size > 0) ? selected_files[0] : ""; if (selected_items.size == 0){ @@ -221,7 +221,7 @@ public class FilesManager : ManagerBox { var default_filter = filter; - var selected_items = gtk_select_files(window, false, true, filters, default_filter); + var selected_items = gtk_select_files(window, false, true, filters, default_filter, "", "/"); //string iso_file = (selected_files.size > 0) ? selected_files[0] : ""; if (selected_items.size == 0){ diff --git a/src/Gtk/ScriptManager.vala b/src/Gtk/ScriptManager.vala index 60e0dad..1f6fe76 100644 --- a/src/Gtk/ScriptManager.vala +++ b/src/Gtk/ScriptManager.vala @@ -54,6 +54,8 @@ public class ScriptManager : ManagerBox { gtk_hide(bbox_execute); + btn_restore.label = _("Execute Scripts"); + // actions ---------------- var bbox = new Gtk.ButtonBox(Orientation.HORIZONTAL); @@ -131,10 +133,12 @@ public class ScriptManager : ManagerBox { if (mode == Mode.BACKUP){ gtk_show(bbox_backup); gtk_hide(bbox_execute); + col_select.visible = true; } else{ gtk_hide(bbox_backup); gtk_show(bbox_execute); + col_select.visible = false; } } diff --git a/src/Utility/Gtk/GtkHelper.vala b/src/Utility/Gtk/GtkHelper.vala index beec24f..1e2b0b5 100644 --- a/src/Utility/Gtk/GtkHelper.vala +++ b/src/Utility/Gtk/GtkHelper.vala @@ -771,8 +771,9 @@ namespace TeeJee.GtkHelper{ // file chooser ---------------- public Gee.ArrayList gtk_select_files(Gtk.Window? parent_window, - bool select_files = true, bool select_multiple = false, Gee.ArrayList? filters = null, Gtk.FileFilter? default_filter = null, string window_title = "", string default_path = ""){ - + bool select_files = true, bool select_multiple = false, + Gee.ArrayList? filters = null, Gtk.FileFilter? default_filter = null, + string window_title = "", string default_path = ""){ /* Example: