diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-09 21:35:35 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-09 21:35:35 -0400 |
commit | 4e0828797e2226539e5389ec864ee259a718bd01 (patch) | |
tree | a805d95c1b7796a95126f10904cf72cdc355bcd2 | |
parent | 2db91eb153dfdc59ad42e13fefb59f180609b1bd (diff) |
trace-graph: Add trace_graph_refresh_filters()
Add the function trace_graph_refresh_filters that redraws the graph
after the filters are updated.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-graph.c | 6 | ||||
-rw-r--r-- | trace-graph.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/trace-graph.c b/trace-graph.c index 73e69d3..5638ce6 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -567,6 +567,12 @@ void trace_graph_update_filters(struct graph_info *ginfo, | |||
567 | redraw_graph(ginfo); | 567 | redraw_graph(ginfo); |
568 | } | 568 | } |
569 | 569 | ||
570 | void trace_graph_refresh_filters(struct graph_info *ginfo) | ||
571 | { | ||
572 | trace_graph_update_filters(ginfo, ginfo->task_filter, | ||
573 | ginfo->hide_tasks); | ||
574 | } | ||
575 | |||
570 | static void | 576 | static void |
571 | filter_clear_tasks_clicked (gpointer data) | 577 | filter_clear_tasks_clicked (gpointer data) |
572 | { | 578 | { |
diff --git a/trace-graph.h b/trace-graph.h index 91194c1..15ad4b2 100644 --- a/trace-graph.h +++ b/trace-graph.h | |||
@@ -314,6 +314,7 @@ int trace_graph_save_filters(struct graph_info *ginfo, | |||
314 | void trace_graph_update_filters(struct graph_info *ginfo, | 314 | void trace_graph_update_filters(struct graph_info *ginfo, |
315 | struct filter_task *task_filter, | 315 | struct filter_task *task_filter, |
316 | struct filter_task *hide_tasks); | 316 | struct filter_task *hide_tasks); |
317 | void trace_graph_refresh_filters(struct graph_info *ginfo); | ||
317 | 318 | ||
318 | /* plots */ | 319 | /* plots */ |
319 | void trace_graph_plot_free(struct graph_info *ginfo); | 320 | void trace_graph_plot_free(struct graph_info *ginfo); |