On Mon, 15 Mar 2021, Federico Pellegrin wrote:
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(a)evolware.org>
---
tuna/gui/cpuview.py | 4 ++--
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>
--
2.26.2
Signed-off-by: John Kacur <jkacur(a)redhat.com>