Skip to content

Commit 96753fd

Browse files
committed
update open files by process; cleanup
1 parent 85da200 commit 96753fd

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/Models/OpenFilesTreeViewModel.vala

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class Monitor.OpenFilesTreeViewModel : Gtk.TreeStore {
3030
foreach (var path in process.open_files_paths) {
3131
add_path (path);
3232
}
33-
debug ("Added paths: %d", open_files_paths.size);
3433
}
3534

3635
private bool add_path (string path) {

src/Views/ProcessView/ProcessInfoView/OpenFilesTreeView.vala

-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ public class Monitor.OpenFilesTreeView : Gtk.TreeView {
4343

4444
}
4545

46-
// public void update (Process process) {
47-
// model.update_model (process);
48-
// show_all ();
49-
// }
50-
5146
public void icon_cell_layout (Gtk.CellLayout cell_layout, Gtk.CellRenderer icon_cell, Gtk.TreeModel model, Gtk.TreeIter iter) {
5247
try {
5348
var icon = Icon.new_for_string ("emblem-documents-symbolic");

src/Views/ProcessView/ProcessInfoView/ProcessInfoIOStats.vala

-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public class Monitor.ProcessInfoIOStats : Gtk.Grid {
5959
write_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.write_bytes));
6060
read_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.read_bytes));
6161
cancelled_write_bytes_label.set_text (Utils.HumanUnitFormatter.double_bytes_to_human (process.io.cancelled_write_bytes));
62-
63-
// open_files_listbox.update (process);
6462
}
6563

6664
private Gtk.Label create_label (string text) {

src/Views/ProcessView/ProcessInfoView/ProcessInfoView.vala

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public class Monitor.ProcessInfoView : Gtk.Box {
120120
process_info_header.update (process);
121121
process_info_cpu_ram.update (process);
122122
process_info_io_stats.update (process);
123+
124+
process_info_io_stats.open_files_tree_view.model.process = _process;
125+
process_info_io_stats.open_files_tree_view.show_all ();
123126
}
124127
}
125128

0 commit comments

Comments
 (0)