From e84497b435618827be8565264d8687adf854e3ec Mon Sep 17 00:00:00 2001 From: stsdc <6031763+stsdc@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:39:24 +0100 Subject: [PATCH] fix showing process info view sidebar --- src/MainWindow.vala | 1 - src/Views/ProcessView/ProcessView.vala | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index fd79415c..9f53096e 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -72,7 +72,6 @@ public class Monitor.MainWindow : Gtk.ApplicationWindow { orientation = Gtk.Orientation.VERTICAL }; - // grid.attach (headerbar, 0, 0, 1, 1); grid.attach (stack, 0, 1, 1, 1); grid.attach (statusbar, 0, 2, 1, 1); diff --git a/src/Views/ProcessView/ProcessView.vala b/src/Views/ProcessView/ProcessView.vala index 7e7f2092..223c6078 100644 --- a/src/Views/ProcessView/ProcessView.vala +++ b/src/Views/ProcessView/ProcessView.vala @@ -9,10 +9,7 @@ public class Monitor.ProcessView : Gtk.Box { // hide on startup // process_info_view.no_show_all = true; - } - - public ProcessView () { - treeview_model = TreeViewModel.get_default (); + treeview_model = TreeViewModel.get_default (); process_tree_view = new CPUProcessTreeView (treeview_model); process_tree_view.process_selected.connect ((process) => on_process_selected (process)); @@ -24,7 +21,7 @@ public class Monitor.ProcessView : Gtk.Box { var paned = new Gtk.Paned (Gtk.Orientation.HORIZONTAL); paned.set_start_child (process_tree_view_scrolled); paned.set_end_child (process_info_view); - // paned.set_min_position (200); + paned.set_shrink_end_child (false); paned.set_position (paned.max_position); paned.set_hexpand (true);