diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-18 17:50:26 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-18 21:43:47 -0500 |
commit | d8044b5778edd8bbc17123bb7996402365a70493 (patch) | |
tree | 4f16217d017bca7e886474c646edb1203347fded | |
parent | 8e5898fc7498693cab0b153eea5e37b302e307d2 (diff) |
trace-graph: Add back setting of draw area width and height
The draw area did request the space for the CPUs when they go out
of view. So we never got the scroll bar for them.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-graph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trace-graph.c b/trace-graph.c index b36c636..0d68e37 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #define version "0.1.1" | 33 | #define version "0.1.1" |
34 | 34 | ||
35 | #define TRACE_WIDTH 800 | 35 | #define TRACE_WIDTH 800 |
36 | #define TRACE_HEIGHT 600 | 36 | #define TRACE_HEIGHT 300 |
37 | 37 | ||
38 | #define MAX_WIDTH 10000 | 38 | #define MAX_WIDTH 10000 |
39 | #define input_file "trace.dat" | 39 | #define input_file "trace.dat" |
@@ -972,7 +972,7 @@ configure_event(GtkWidget *widget, GdkEventMotion *event, gpointer data) | |||
972 | struct graph_info *ginfo = data; | 972 | struct graph_info *ginfo = data; |
973 | GdkPixmap *old_pix; | 973 | GdkPixmap *old_pix; |
974 | 974 | ||
975 | // gtk_widget_set_size_request(widget, 0, ginfo->draw_height); | 975 | gtk_widget_set_size_request(widget, ginfo->draw_width, ginfo->draw_height); |
976 | 976 | ||
977 | 977 | ||
978 | old_pix = ginfo->curr_pixmap; | 978 | old_pix = ginfo->curr_pixmap; |