diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2010-02-10 20:05:13 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-10 20:05:13 -0500 |
| commit | 3f06bd2b7c77f36f191fe7cb66c240bea1d9a50d (patch) | |
| tree | 7cfdb98a48ccc4527d37a3f9b3ce4ee32c6ab131 /trace-graph.c | |
| parent | 6ad565c13a244862635ebc1d41df4f8d9956ed85 (diff) | |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trace-graph.c b/trace-graph.c index 59397cf..2214141 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
| @@ -434,7 +434,8 @@ plot_task_clicked (gpointer data) | |||
| 434 | 434 | ||
| 435 | graph_plot_task(ginfo, ginfo->filter_task_selected, pos); | 435 | graph_plot_task(ginfo, ginfo->filter_task_selected, pos); |
| 436 | ginfo->draw_height = PLOT_SPACE(ginfo->plots); | 436 | ginfo->draw_height = PLOT_SPACE(ginfo->plots); |
| 437 | redraw_graph(ginfo); | 437 | ginfo->draw_height = PLOT_SPACE(ginfo->plots); |
| 438 | gtk_widget_set_size_request(ginfo->draw, ginfo->draw_width, ginfo->draw_height); | ||
| 438 | update_label_window(ginfo); | 439 | update_label_window(ginfo); |
| 439 | } | 440 | } |
| 440 | 441 | ||
| @@ -449,7 +450,7 @@ remove_plot_clicked (gpointer data) | |||
| 449 | 450 | ||
| 450 | trace_graph_plot_remove(ginfo, plot); | 451 | trace_graph_plot_remove(ginfo, plot); |
| 451 | ginfo->draw_height = PLOT_SPACE(ginfo->plots); | 452 | ginfo->draw_height = PLOT_SPACE(ginfo->plots); |
| 452 | redraw_graph(ginfo); | 453 | gtk_widget_set_size_request(ginfo->draw, ginfo->draw_width, ginfo->draw_height); |
| 453 | update_label_window(ginfo); | 454 | update_label_window(ginfo); |
| 454 | } | 455 | } |
| 455 | 456 | ||
