Skip to content

Commit

Permalink
update open files by process; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stsdc committed Jun 16, 2022
1 parent 85da200 commit 96753fd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Models/OpenFilesTreeViewModel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class Monitor.OpenFilesTreeViewModel : Gtk.TreeStore {
foreach (var path in process.open_files_paths) {
add_path (path);
}
debug ("Added paths: %d", open_files_paths.size);
}

private bool add_path (string path) {
Expand Down
5 changes: 0 additions & 5 deletions src/Views/ProcessView/ProcessInfoView/OpenFilesTreeView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ public class Monitor.OpenFilesTreeView : Gtk.TreeView {

}

// public void update (Process process) {
// model.update_model (process);
// show_all ();
// }

public void icon_cell_layout (Gtk.CellLayout cell_layout, Gtk.CellRenderer icon_cell, Gtk.TreeModel model, Gtk.TreeIter iter) {
try {
var icon = Icon.new_for_string ("emblem-documents-symbolic");
Expand Down
2 changes: 0 additions & 2 deletions src/Views/ProcessView/ProcessInfoView/ProcessInfoIOStats.vala
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public class Monitor.ProcessInfoIOStats : Gtk.Grid {
write_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.write_bytes));
read_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.read_bytes));
cancelled_write_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.cancelled_write_bytes));

// open_files_listbox.update (process);
}

private Gtk.Label create_label (string text) {
Expand Down
3 changes: 3 additions & 0 deletions src/Views/ProcessView/ProcessInfoView/ProcessInfoView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public class Monitor.ProcessInfoView : Gtk.Box {
process_info_header.update (process);
process_info_cpu_ram.update (process);
process_info_io_stats.update (process);

process_info_io_stats.open_files_tree_view.model.process = _process;
process_info_io_stats.open_files_tree_view.show_all ();
}
}

Expand Down

0 comments on commit 96753fd

Please sign in to comment.