aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-09 21:35:35 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-09 21:35:35 -0400
commit4e0828797e2226539e5389ec864ee259a718bd01 (patch)
treea805d95c1b7796a95126f10904cf72cdc355bcd2
parent2db91eb153dfdc59ad42e13fefb59f180609b1bd (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.c6
-rw-r--r--trace-graph.h1
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
570void trace_graph_refresh_filters(struct graph_info *ginfo)
571{
572 trace_graph_update_filters(ginfo, ginfo->task_filter,
573 ginfo->hide_tasks);
574}
575
570static void 576static void
571filter_clear_tasks_clicked (gpointer data) 577filter_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,
314void trace_graph_update_filters(struct graph_info *ginfo, 314void 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);
317void trace_graph_refresh_filters(struct graph_info *ginfo);
317 318
318/* plots */ 319/* plots */
319void trace_graph_plot_free(struct graph_info *ginfo); 320void trace_graph_plot_free(struct graph_info *ginfo);