diff options
author | Federico Pellegrin <fede@evolware.org> | 2021-03-15 07:37:47 +0100 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2021-03-18 16:49:11 -0400 |
commit | 3366274fe1bad7521d4884f76d444e915d696c97 (patch) | |
tree | 33dc5cf7c2e4f4dfea639dd4e72442a73c2dc1fb | |
parent | 63760b237ba33b13dc947ef6dd5557aa609c7fb0 (diff) | |
download | tuna-3366274fe1bad7521d4884f76d444e915d696c97.tar.gz |
cpuview: improve display of CPUs/Sockets for every CPU/socket number
Improves the display for variable (tested 2-32) total number of
CPUs/Sockets by:
-) Setting a minimal size under which it doesn't get minimized (so
we can always see the table header at start). Size is the original
160px from previous versions, but it wasn't applied due to "shrink"
being permitted.
-) Disables shrink/fill in vertical of CPU/sockets panes so we neither
lose them if too many, nor get useless empty rectangles if there is
space available
Signed-off-by: Federico Pellegrin <fede@evolware.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-x | tuna/gui/cpuview.py | 4 | ||||
-rw-r--r-- | tuna/tuna_gui.glade | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tuna/gui/cpuview.py b/tuna/gui/cpuview.py index eeabf2a..fea8744 100755 --- a/tuna/gui/cpuview.py +++ b/tuna/gui/cpuview.py @@ -267,7 +267,7 @@ class cpuview: columns = math.ceil(math.sqrt(self.nr_sockets)) rows = math.ceil(self.nr_sockets / columns) box = Gtk.HBox() - vbox.pack_start(box, True, True, 0) + vbox.pack_start(box, False, False, 2) else: box = vbox @@ -280,7 +280,7 @@ class cpuview: if self.nr_sockets > 1: if column == columns: box = Gtk.HBox() - vbox.pack_start(box, True, True, 0) + vbox.pack_start(box, False, False, 2) column = 1 else: column += 1 diff --git a/tuna/tuna_gui.glade b/tuna/tuna_gui.glade index d02a06a..b892d21 100644 --- a/tuna/tuna_gui.glade +++ b/tuna/tuna_gui.glade @@ -97,7 +97,7 @@ </object> <packing> <property name="resize">False</property> - <property name="shrink">True</property> + <property name="shrink">False</property> </packing> </child> <child> |