From 2413614d3bc435cd09e425fa34068e4a333f0495 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 15 Jan 2005 21:50:21 +0000 Subject: remove some useless buttons git-svn-id: file:///home/lennart/svn/public/heatload/heatload@5 3bca8330-beed-0310-b360-ea58cfc96e4b --- heatload.cc | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/heatload.cc b/heatload.cc index 5ae65a0..21b8787 100644 --- a/heatload.cc +++ b/heatload.cc @@ -161,9 +161,7 @@ protected: Gtk::Label cpu_label, temperature_label; Gtk::Frame frame; GraphDrawingArea drawing_area; - Gtk::HBox hbox, hbox2; - Gtk::Button refresh_button; - Gtk::Button quit_button; + Gtk::HBox hbox; public: MainWindow(); @@ -176,10 +174,7 @@ public: MainWindow::MainWindow(): vbox(false, 5), - hbox(true, 5), - hbox2(true, 5), - refresh_button("Refresh"), - quit_button("Quit") { + hbox(true, 5) { set_border_width(5); set_title("Heatload"); @@ -199,23 +194,14 @@ MainWindow::MainWindow(): temperature_label.set_alignment(0, 0); frame.set_shadow_type(Gtk::SHADOW_IN); - - quit_button.signal_clicked().connect(sigc::ptr_fun(&Gtk::Main::quit)); - refresh_button.signal_clicked().connect(sigc::mem_fun(this, &MainWindow::refresh)); - frame.add(drawing_area); vbox.pack_start(label, false, true); vbox.pack_start(frame, true, true); - hbox2.pack_start(cpu_label, false, true); - hbox2.pack_start(temperature_label, false, true); + hbox.pack_start(cpu_label, false, true); + hbox.pack_start(temperature_label, false, true); - vbox.pack_start(hbox2, false, true); - - hbox.pack_start(refresh_button, false, true); - hbox.pack_start(quit_button, false, true); - vbox.pack_start(hbox, false, true); add(vbox); -- cgit