Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Fixed some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
teejee2008 committed May 11, 2018
1 parent f973278 commit bb89765
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Gtk/FilesManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -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){
Expand Down
4 changes: 4 additions & 0 deletions src/Gtk/ScriptManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/Utility/Gtk/GtkHelper.vala
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,9 @@ namespace TeeJee.GtkHelper{
// file chooser ----------------

public Gee.ArrayList<string> gtk_select_files(Gtk.Window? parent_window,
bool select_files = true, bool select_multiple = false, Gee.ArrayList<Gtk.FileFilter>? filters = null, Gtk.FileFilter? default_filter = null, string window_title = "", string default_path = ""){

bool select_files = true, bool select_multiple = false,
Gee.ArrayList<Gtk.FileFilter>? filters = null, Gtk.FileFilter? default_filter = null,
string window_title = "", string default_path = ""){

/* Example:
Expand Down

0 comments on commit bb89765

Please sign in to comment.