diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-07 15:35:33 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-07 15:35:33 -0500 |
commit | 30f7571850c130f3e48b6c05df0c1f092f59106b (patch) | |
tree | 530aac0daab243f3c85edba6731379f72b62d208 /trace-view.c | |
parent | 858870d7840afb12b5cd5d68fd54ff5293db77bd (diff) |
trace-view: Add hiding of tasks to list
Pass the task filters for both hiding and filtering from the
graph to the list.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-view.c')
-rw-r--r-- | trace-view.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/trace-view.c b/trace-view.c index c73f95a..a00e877 100644 --- a/trace-view.c +++ b/trace-view.c | |||
@@ -271,7 +271,9 @@ void trace_view_make_selection_visible(GtkWidget *treeview) | |||
271 | gtk_tree_path_free(path); | 271 | gtk_tree_path_free(path); |
272 | } | 272 | } |
273 | 273 | ||
274 | void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filter) | 274 | void trace_view_update_filters(GtkWidget *treeview, |
275 | struct filter_task *task_filter, | ||
276 | struct filter_task *hide_tasks) | ||
275 | { | 277 | { |
276 | GtkTreeView *tree = GTK_TREE_VIEW(treeview); | 278 | GtkTreeView *tree = GTK_TREE_VIEW(treeview); |
277 | TraceViewRecord *vrec; | 279 | TraceViewRecord *vrec; |
@@ -293,13 +295,14 @@ void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filt | |||
293 | g_object_ref(model); | 295 | g_object_ref(model); |
294 | gtk_tree_view_set_model(tree, NULL); | 296 | gtk_tree_view_set_model(tree, NULL); |
295 | 297 | ||
296 | trace_view_store_filter_tasks(TRACE_VIEW_STORE(model), filter); | 298 | trace_view_store_assign_filters(TRACE_VIEW_STORE(model), task_filter, hide_tasks); |
299 | trace_view_store_update_filter(TRACE_VIEW_STORE(model)); | ||
297 | 300 | ||
298 | gtk_tree_view_set_model(tree, model); | 301 | gtk_tree_view_set_model(tree, model); |
299 | g_object_unref(model); | 302 | g_object_unref(model); |
300 | 303 | ||
301 | /* Keep selection near previous selection */ | 304 | /* Keep selection near previous selection */ |
302 | if (row >= 0) | 305 | if (row >= 0 && trace_view_store_visible_rows(TRACE_VIEW_STORE(model))) |
303 | trace_view_select(treeview, time); | 306 | trace_view_select(treeview, time); |
304 | } | 307 | } |
305 | 308 | ||