summaryrefslogtreecommitdiffstats
path: root/grapher
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-04 21:09:18 -0700
committerJosh Stone <jistone@redhat.com>2009-08-04 21:09:44 -0700
commit034ce93ff77c29dbbc51783c1983092ec3421fe7 (patch)
treecfbb757b92cdbeb79f8643d2bdf835e3d08c57c9 /grapher
parentb6a45931c81fa7c1c0acb7c69146ee67cb19ca9b (diff)
parent1e9b189fbd2cdc0e978de086299ba3a501608005 (diff)
downloadsystemtap-steved-034ce93ff77c29dbbc51783c1983092ec3421fe7.tar.gz
systemtap-steved-034ce93ff77c29dbbc51783c1983092ec3421fe7.tar.xz
systemtap-steved-034ce93ff77c29dbbc51783c1983092ec3421fe7.zip
Merge branch 'release'
Diffstat (limited to 'grapher')
-rw-r--r--grapher/Graph.cxx6
-rw-r--r--grapher/GraphWidget.cxx7
2 files changed, 3 insertions, 10 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx
index d36f284f..ec5e4035 100644
--- a/grapher/Graph.cxx
+++ b/grapher/Graph.cxx
@@ -10,9 +10,9 @@ namespace systemtap
using namespace std::tr1;
Graph::Graph()
- : _left(0.0), _right(1.0), _top(5.0), _bottom(0.0), _lineWidth(2),
- _autoScaling(true), _autoScrolling(true), _zoomFactor(1.0),
- _playButton(new CairoPlayButton)
+ : _lineWidth(2), _autoScaling(true), _autoScrolling(true),
+ _zoomFactor(1.0), _playButton(new CairoPlayButton),
+ _left(0.0), _right(1.0), _top(5.0), _bottom(0.0)
{
}
diff --git a/grapher/GraphWidget.cxx b/grapher/GraphWidget.cxx
index 5b0d1b1c..4a1e0918 100644
--- a/grapher/GraphWidget.cxx
+++ b/grapher/GraphWidget.cxx
@@ -54,13 +54,6 @@ namespace systemtap
if(!window)
return true;
- Gtk::Allocation allocation = get_allocation();
-
- const int graphWidth = allocation.get_width();
- const int graphHeight = allocation.get_height();
- const int width = graphWidth - 20;
- const int height = graphHeight - 20;
-
Cairo::RefPtr<Cairo::Context> cr = window->create_cairo_context();
#if 0
if(event && !_autoScaling)