diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-16 20:16:19 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-16 20:16:19 -0500 |
commit | 070ec4400d7d18e39af7d580351a4132569c0b1b (patch) | |
tree | 47d7f19aa379797932b223bffe1c0540c5d7a50b | |
parent | 69d7fc3623a25726177aa8ce224a94457e03578e (diff) |
trace-view: Use info for finding tree in callbacks
In trace-view-main, the info passed to the callbacks is now
a tree info and not the tree. The CPU and events clicked callbacks
did not get updated to this change.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-view-main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trace-view-main.c b/trace-view-main.c index 1340efd..e04fd05 100644 --- a/trace-view-main.c +++ b/trace-view-main.c | |||
@@ -98,7 +98,8 @@ delete_event (GtkWidget *widget, GdkEvent *event, gpointer data) | |||
98 | static void | 98 | static void |
99 | events_clicked (gpointer data) | 99 | events_clicked (gpointer data) |
100 | { | 100 | { |
101 | GtkTreeView *trace_tree = data; | 101 | struct trace_tree_info *info = data; |
102 | GtkTreeView *trace_tree = GTK_TREE_VIEW(info->trace_tree); | ||
102 | GtkTreeModel *model; | 103 | GtkTreeModel *model; |
103 | TraceViewStore *store; | 104 | TraceViewStore *store; |
104 | gboolean all_events; | 105 | gboolean all_events; |
@@ -124,7 +125,8 @@ events_clicked (gpointer data) | |||
124 | static void | 125 | static void |
125 | cpus_clicked (gpointer data) | 126 | cpus_clicked (gpointer data) |
126 | { | 127 | { |
127 | GtkTreeView *trace_tree = data; | 128 | struct trace_tree_info *info = data; |
129 | GtkTreeView *trace_tree = GTK_TREE_VIEW(info->trace_tree); | ||
128 | TraceViewStore *store; | 130 | TraceViewStore *store; |
129 | gboolean all_cpus; | 131 | gboolean all_cpus; |
130 | guint64 *cpu_mask; | 132 | guint64 *cpu_mask; |