diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-09-15 19:15:34 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-09-15 19:15:34 -0300 |
commit | 13d5e29642eca332952ef8ecd90052d44c62100a (patch) | |
tree | 68806f45b90d58dd80b8414f293a4df09393967b | |
parent | 1dd400e941641f320128ddca2fb51ad153484104 (diff) | |
download | tuna-13d5e29642eca332952ef8ecd90052d44c62100a.tar.gz |
tuna_gui: cpu_socket_frame: no need to have a title if there is just one
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tuna/tuna_gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tuna/tuna_gui.py b/tuna/tuna_gui.py index 8a800e1..0ca02d8 100644 --- a/tuna/tuna_gui.py +++ b/tuna/tuna_gui.py @@ -86,7 +86,10 @@ class cpu_socket_frame(gtk.Frame): def __init__(self, socket, cpus, creator): - gtk.Frame.__init__(self, "Socket %s" % socket) + if creator.nr_sockets > 1: + gtk.Frame.__init__(self, "Socket %s" % socket) + else: + gtk.Frame.__init__(self) self.socket = socket self.cpus = cpus |