diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-04 23:59:53 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-04 23:59:53 -0500 |
commit | 806f615ff118287c117053b3eaed50433a1282da (patch) | |
tree | 895eea9891d152ebef6d780f6bf54eb13ac2f676 /trace-view-main.c | |
parent | bc166bbe6c6179cbe879473a9d67c20245bbc36e (diff) |
trace-view: Add tree view to scrolled window with gtk_container_add()
The tree-view-main.c added the tree view to the scrolled window with
gtk_scrolled_window_add_with_viewport, but tree-views have their own
viewport. Not only is this not the proper way, but it was causing
a hang when we opened either the CPU or events dialogs.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-view-main.c')
-rw-r--r-- | trace-view-main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trace-view-main.c b/trace-view-main.c index 5b6eb7b..2f4042e 100644 --- a/trace-view-main.c +++ b/trace-view-main.c | |||
@@ -248,8 +248,7 @@ void trace_view(int argc, char **argv) | |||
248 | 248 | ||
249 | trace_view_load(trace_tree, handle, spin); | 249 | trace_view_load(trace_tree, handle, spin); |
250 | 250 | ||
251 | gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollwin), | 251 | gtk_container_add(GTK_CONTAINER(scrollwin), trace_tree); |
252 | trace_tree); | ||
253 | gtk_widget_show(trace_tree); | 252 | gtk_widget_show(trace_tree); |
254 | 253 | ||
255 | 254 | ||