summaryrefslogtreecommitdiffstats
path: root/grapher/grapher.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
committerDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
commit762684a57fa5420cc122b475f592545e8eeb29cd (patch)
treec1b55657f1aff31e7298d76852bbe8522a84db13 /grapher/grapher.cxx
parent8afee8bbf045e858dae186d40653293c99dbbcdd (diff)
parent6bde4f381475cea055352d8ad5f60bb2f24de21d (diff)
downloadsystemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.gz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.xz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/grapher.cxx')
-rw-r--r--grapher/grapher.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/grapher/grapher.cxx b/grapher/grapher.cxx
index a0d35017..95ac232d 100644
--- a/grapher/grapher.cxx
+++ b/grapher/grapher.cxx
@@ -13,6 +13,7 @@
#include <gtkmm/stock.h>
#include <gtkmm/main.h>
#include <gtkmm/window.h>
+#include <gtkmm/scrolledwindow.h>
#include <unistd.h>
#include <poll.h>
#include <signal.h>
@@ -27,6 +28,7 @@ public:
GrapherWindow();
virtual ~GrapherWindow() {}
Gtk::VBox m_Box;
+ Gtk::ScrolledWindow scrolled;
GraphWidget w;
protected:
virtual void on_menu_file_quit();
@@ -70,10 +72,11 @@ GrapherWindow::GrapherWindow()
std::cerr << "building menus failed: " << ex.what();
}
Gtk::Widget* pMenubar = m_refUIManager->get_widget("/MenuBar");
+ scrolled.add(w);
if(pMenubar)
m_Box.pack_start(*pMenubar, Gtk::PACK_SHRINK);
- m_Box.pack_start(w, Gtk::PACK_EXPAND_WIDGET);
- w.show();
+ m_Box.pack_start(scrolled, Gtk::PACK_EXPAND_WIDGET);
+ scrolled.show();
show_all_children();