aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-02-10 20:05:13 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-10 20:05:13 -0500
commit3f06bd2b7c77f36f191fe7cb66c240bea1d9a50d (patch)
tree7cfdb98a48ccc4527d37a3f9b3ce4ee32c6ab131 /trace-graph.c
parent6ad565c13a244862635ebc1d41df4f8d9956ed85 (diff)
downloadtrace-cmd-3f06bd2b7c77f36f191fe7cb66c240bea1d9a50d.tar.gz
trace-graph: Resize instead of redraw when adding plots
When adding a new plot, a resize is required since the size of the graph has changed. Not just redrawing the graph. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-graph.c')
-rw-r--r--trace-graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/trace-graph.c b/trace-graph.c
index 59397cf3..2214141f 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -434,7 +434,8 @@ plot_task_clicked (gpointer data)
graph_plot_task(ginfo, ginfo->filter_task_selected, pos);
ginfo->draw_height = PLOT_SPACE(ginfo->plots);
- redraw_graph(ginfo);
+ ginfo->draw_height = PLOT_SPACE(ginfo->plots);
+ gtk_widget_set_size_request(ginfo->draw, ginfo->draw_width, ginfo->draw_height);
update_label_window(ginfo);
}
@@ -449,7 +450,7 @@ remove_plot_clicked (gpointer data)
trace_graph_plot_remove(ginfo, plot);
ginfo->draw_height = PLOT_SPACE(ginfo->plots);
- redraw_graph(ginfo);
+ gtk_widget_set_size_request(ginfo->draw, ginfo->draw_width, ginfo->draw_height);
update_label_window(ginfo);
}